Hauptseite: Unterschied zwischen den Versionen

Aus SemanticGlossar
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
 
(39 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
This wiki demonstrates possibilities and benefits of semantically annotated texts, specifically for the [https://www.ipcc.ch/report/ar6/syr/ IPCC AR6 climate report].
<div class="container-fluid">
Use the table below to identify relevant texts via the word clouds or search for a text.
<div class="row">
{{Special:RunQuery/TextSuche}}
<div class="col-md-12">
{{#ask:
<div class="jumbotron">
[[P1::Text]]
<h2>
[[has subobject::+]]
Co-Site Glossar
| ?
</h2>
| ?P3=titel
<p>
| format=template
Dieses Glossar enthält wichtige Begriffe des Projekts Co-Site rund um Klimawandelanpassung und unser Reallabor.
| introtemplate=TextListTemplateHeader
</p>
| template=TextListTemplate
<p>
| outrotemplate=TableFooter
<btn class="btn-primary">
| link=none
Co-Site Glossar|Über Glossar
| header=hide
</btn>
|class=smwtable-clean
</p>
}}
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="alert alert-info" role="alert"><p>
Benutzer müssen zum Bearbeiten eingeloggt sein!
 
Bitte wenden Sie sich an die Administratoren der Website, um die Zugangsdaten zu erhalten, da die Erstellung von Konten über die Website deaktiviert ist.
</p></div>
</div>
</div>
 
<div class="row justify-content-md-center" style="padding-top:2rem;">
<div class="col-md-auto ml-auto" >
<p>
<btn class="btn-primary mainpage-trinity">
Begriff_hinzufügen|Begriffe hinzufügen
</btn>
</p>
</div>
<div class="col-md-auto ml-auto">
<p>
<btn class="btn-primary mainpage-trinity">
Vokabulare|Begriffe bearbeiten
</btn>
</p>
</div>
<div class="col-md-auto ml-auto">
<p>
<btn class="btn-primary mainpage-trinity">
CoSite|Glossar ansehen
</btn>
</p>
</div>
</div>
</div>
<br>
<br>
<div class="row">
<div class="col-md-12">
<div class="jumbotron">
<h2>
Support & Entwicklung
</h2>
<p>
'Semantic Glossar' ist eine Open-Source-Software, die die gemeinsame Erstellung, Verwaltung und Veröffentlichung von Glossaren ermöglicht. Glossare werden als "Linked Open Data" gespeichert.
</p>
<div class="row">
<div class="col-md-6">
<h2>
Support
</h2>
<p>
Ein Quick-Start-Leitfaden ist ebenso verfügbar wie ein Support-Ticketing. Hier finden Sie auch Benutzerhandbücher und Tutorials.
</p>
<p>
<btn>
Support|Support
</btn>
</p>
</div>
<div class="col-md-6">
<h2>
Entwicklung
</h2>
<p>
Softwarecode und Entwicklungsressourcen sind verfügbar. Wenn Sie Funktionswünsche oder andere Fragen haben, reichen Sie bitte ein Ticket ein. 
</p>
<p>
<btn>
Info|Info
</btn>
</p>
</div>
</div>
</div>
</div>
</div>


== Textanzeige ==
{{Special:RunQuery/TextAnzeige}}


== Analytics ==
== Analytics ==
[[Statistics|Statistiken]]
[[Statistics|Statistiken]]
[[Vokabulare]]
| [[Vokabulare]]
 
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Add Item to Wikibase</title>
    <script>
        async function getCsrfToken() {
            const apiUrl = 'http://swb.local/api.php'; // Replace with your Wikibase API URL
 
            // Log in if required (replace with actual credentials)
            const loginData = new URLSearchParams();
            loginData.append('action', 'login');
            loginData.append('lgname', 'wkadmin'); // Replace with your username
            loginData.append('lgpassword', '7kKq4gxBtV'); // Replace with your password
            loginData.append('format', 'json');
 
            await fetch(apiUrl, {
                method: 'POST',
                body: loginData,
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded'
                },
                credentials: 'include' // Include cookies in the request
            });
 
            // Get the CSRF token
            const tokenData = new URLSearchParams();
            tokenData.append('action', 'query');
            tokenData.append('meta', 'tokens');
            tokenData.append('format', 'json');
 
            const response = await fetch(apiUrl + '?' + tokenData.toString(), {
                method: 'GET',
                credentials: 'include' // Include cookies in the request
            });
 
            const data = await response.json();
            return data.query.tokens.csrftoken;
        }
 
        async function addItem(event) {
            event.preventDefault();
 
            const name = document.getElementById('name').value;
            const description = document.getElementById('description').value;
            const subCategoryOf = document.getElementById('subCategoryOf').value;
            const token = await getCsrfToken();
 
            const apiUrl = 'http://swb.local/api.php?action=wbeditentity&new=item&format=json'; // Replace with your Wikibase API URL
 
            const formData = new URLSearchParams();
            formData.append('action', 'wbeditentity');
            //formData.append('new', 'item');
            formData.append('token', token);
            formData.append('format', 'json');
 
            formData.append('data', JSON.stringify(
              {
                "labels":{"en":{"language":"en","value":"term_"+name}},
                "descriptions":{"en":{"language":"en","value":description}},"datatype":"string",
                "claims":[
                  {"mainsnak":{"snaktype":"value","property":"P3","datavalue":{"value":name,"type":"string"}},"type":"statement","rank":"normal"},
                  {"mainsnak":{"snaktype":"value","property":"P1","datavalue":{"value":"Term","type":"string"}},"type":"statement","rank":"normal"},
                  {"mainsnak":{"snaktype":"value","property":"P10","datavalue": {"value": {"entity-type": "item","id": subCategoryOf},"type": "wikibase-entityid"}},"type": "statement","rank": "normal"}
                ]
              }
 
            ));
           
 
            try {
                const response = await fetch(apiUrl, {
                    method: 'POST',
                    body: formData,
                    headers: {
                        'Content-Type': 'application/x-www-form-urlencoded'
                    },
                    credentials: 'include' // Include cookies in the request
                });
 
                const data = await response.json();
                if (data.success) {
                    alert('Item added successfully!');
                } else {
                    alert('Error adding item: ' + JSON.stringify(data));
                }
            } catch (error) {
                alert('Error: ' + error.message);
            }
        }
    </script>
</head>
 
    <h1>Add Item to Wikibase</h1>
    <form id="addItemForm" onsubmit="addItem(event)">
        <label for="name">Label:</label>
        <input type="text" id="name" name="name" required><br><br>
        <label for="description">Definition:</label>
        <input type="text" id="description" name="description" required><br><br>
 
        <label for="subCategoryOf">SubCategory of:</label>
        <select id="subCategoryOf" name="subCategoryOf" required>
            <option value="term_term">Term</option>
            <option value="Q940">Acronym</option>
            <option value="term_qualifier">Qualifier</option>
        </select><br><br>


        <input type="submit" value="Add Item">
== Wikibase ==
    </form>
[[Spezial:Objekte_ohne_Websitelinks|Items]]
| [[Spezial:ListProperties|Properties]]

Aktuelle Version vom 12. August 2024, 09:34 Uhr

Co-Site Glossar

Dieses Glossar enthält wichtige Begriffe des Projekts Co-Site rund um Klimawandelanpassung und unser Reallabor.



Support & Entwicklung

'Semantic Glossar' ist eine Open-Source-Software, die die gemeinsame Erstellung, Verwaltung und Veröffentlichung von Glossaren ermöglicht. Glossare werden als "Linked Open Data" gespeichert.

Support

Ein Quick-Start-Leitfaden ist ebenso verfügbar wie ein Support-Ticketing. Hier finden Sie auch Benutzerhandbücher und Tutorials.

Entwicklung

Softwarecode und Entwicklungsressourcen sind verfügbar. Wenn Sie Funktionswünsche oder andere Fragen haben, reichen Sie bitte ein Ticket ein.


Analytics

Statistiken | Vokabulare

Wikibase

Items | Properties