The DACH-KG is trying to find a vocabulary to semantically describe touristic content. As a foundation, schema.org is the vocabulary of choice. Yet, the expressivity of schema.org is limited and that is why the DACH-KG extends the vocabulary of schema.org and publishes this vocabulary here.
In this repository we host two types of extensions:
-
First, in the schema folder, the actual extension to schema.org under the dachkg namespace. The DACH-KG with all its members agreed on this extension in their meetings and this is assumed as the official dach-kg extension.
-
The second type, in the extension folder, is where it-service providers or touristic service providers can publish their custom extensions to schema.org or the dachkg namespace.
schema contains the dachkg schema.org extension in a turtle file. Over time, the different releases will be held there (or with the release feature of GitHub).
extensions contains the template folder with show case files to extend the vocabulary, called template-extension, and the submodules of custom dachkg-extensions by third parties.
This sections gives examples of how to add own vocabulary to the dachkg namespace or the third-party extensions.
- clone this repository
- change the file in the schema folder according to your suggestion
- file a Pull Request and wait for the DACH-KG to come back to you and/or accept your request.
suppose we have a company called the super tourism data provider or short tstdp.
-
If you have no GithHub account, create one and create a new repository called, named ***-extension (e.g.: tstdp-extension).
-
Copy the extension template file (my-company.ttl OR my-company.json) in the template-extension folder of this repository into the root of your new repository. Rename the file as you wish (keep the .ttl OR .json file format), and edit the file.
-
then you decide on a namespace. This could be https://thesuperprovider.com/ontology/1.0/ abbreviated with tstdp:.
-
start adding your classes and properties and make sure to always use rdfs:subClassOf to your class definition to make it part of the dachkg vocabulary.
Your extension file, based on the provided template, would then either look like this (in Turtle syntax):
@prefix dachkg: <https://https://dachkg.org/ontology/1.0/> .
@prefix schema: <https://schema.org/> .
@prefix tstdp: <https://thesuperprovider.com/ontology/1.0/> .
##Classes
tstdp:Heurigen a rdfs:Class ;
rdfs:label "Heurigen" ;
rdfs:comment "A place where you consume housmade wine." ;
rdfs:subClassOf schema:LocalBusiness .
rdfs:subClassOf schema:Winery .
#Properties
tstdp:wineOfTheDay a rdf:Property ;
rdfs:label "wineOfTheDay" ;
schema:domainIncludes tstdp:Heurigen ;
schema:rangeIncludes schema:Text ;
rdfs:comment "The wine of the day sold in a Heurigen." ;
rdfs:subPropertyOf dachkg:drinkOfTheDay .
or like that (in JSON-LD syntax):
{
"@context": {
"dachkg": "https://https://dachkg.org/ontology/1.0/",
"my-comp": "https://my-company.org/ontology/1.0/",
"rdf": "https://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "https://www.w3.org/2000/01/rdf-schema#",
"schema": "https://schema.org/",
"xsd": "https://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
"@id": "my-comp:Heurigen",
"@type": "rdfs:Class",
"rdfs:comment": "A place where you consume housmade wine.",
"rdfs:label": "Heurigen",
"rdfs:subClassOf": [
{
"@id": "schema:LocalBusiness"
},
{
"@id": "schema:Winery"
}
]
},
{
"@id": "my-comp:wineOfTheDay",
"@type": "rdf:Property",
"rdfs:comment": "The wine of the day sold in a Heurigen.",
"rdfs:label": "wineOfTheDay",
"rdfs:subPropertyOf": {
"@id": "dachkg:drinkOfTheDay"
},
"schema:domainIncludes": {
"@id": "my-comp:Heurigen"
},
"schema:rangeIncludes": {
"@id": "schema:Text"
}
}
]
}
-
Commit and push your extension to your github repository.
-
If you want to submit your third-party extension to the DACH-KG extensions list, please for this repository, add a row with the requested information to the table in Third-Party-Extensions Readme and make a pull request.
For more information please contact the editors of this file and repository or write an email to elias.kaerle [a t] sti2.at or umutcan.simsek [a t] sti2.at.