Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 change namespace url to be resolvable #27

Merged
merged 4 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -15,8 +15,7 @@ We decided to build upon this work and build and RDF based ontology, for the *DF
## Ontology

* **Ontology TTL**: [dfgfo.ttl](./dfgfo.ttl)
* **Ontology IRI**: <https://github.com/tibonto/dfgfo/>
* **Ontology PURL**: <https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/main/dfgfo.ttl>
* **Ontology PURL**: <https://w3id.org/dfgfo/2024>
* **ontology prefix/id**: `dfgfo`

![screen capture of classes hierarchy in protege](./docs/dfgfo-hierarchies.png)
11 changes: 8 additions & 3 deletions dfgfo.ttl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dfgfo: <https://github.com/tibonto/dfgfo/> .
@prefix dfgfo: <https://w3id.org/dfgfo/2024/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


dc:creator a owl:AnnotationProperty .

@@ -17,7 +19,7 @@ skos:altLabel a owl:AnnotationProperty .

skos:closeMatch a owl:ObjectProperty .

<https://github.com/tibonto/dfgfo> a owl:Ontology ;
<https://w3id.org/dfgfo/2024> a owl:Ontology ;
dc:creator "André Castro",
"Deutsche Forschungsgemeinschaft (DFG)",
"Susanne Arndt" ;
@@ -27,7 +29,9 @@ skos:closeMatch a owl:ObjectProperty .
dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
rdfs:comment "DFG Classification of Subject Areas Ontology is being created as part of the TIB Terminology Service"@de,
"DFG Fachsystematik - Ontology wurde zur Integration in den TIB Terminology Service erstellt"@de,
"DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology (DFGFO) is aligned with GBV DFG2024 via skos:closeMatch relations. The two semantic artifacts were developed separately, but both teams strive towards alignment. While DFGO defines terms as owl:Class instances, GBV defines them as skos:Concept. More details on GBV DFG2024 at http://uri.gbv.de/terminology/dfg/"@en .
"DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology (DFGFO) is aligned with GBV DFG2024 via skos:closeMatch relations. The two semantic artifacts were developed separately, but both teams strive towards alignment. While DFGO defines terms as owl:Class instances, GBV defines them as skos:Concept. More details on GBV DFG2024 at http://uri.gbv.de/terminology/dfg/"@en ;
owl:versionIRI dfgfo: ;
owl:versionInfo "2024-2028"^^xsd:string .

dfgfo:111-01 a owl:Class ;
rdfs:label "Prehistory and World Archaeology"@en ;
@@ -1715,3 +1719,4 @@ dfgfo:222 a owl:Class ;
skos:altLabel "Medizin"@de ;
skos:closeMatch <http://uri.gbv.de/terminology/dfg2024/222> .


9 changes: 6 additions & 3 deletions metadata.ttl
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


dc:creator rdf:type owl:AnnotationProperty .
@@ -16,10 +17,9 @@ dc:title rdf:type owl:AnnotationProperty .
terms:license rdf:type owl:AnnotationProperty .

skos:altLabel rdf:type owl:AnnotationProperty .

skos:closeMatch rdf:type owl:ObjectProperty .

<https://github.com/tibonto/dfgfo> rdf:type owl:Ontology ;
<https://w3id.org/dfgfo/2024> rdf:type owl:Ontology ;
dc:creator "Deutsche Forschungsgemeinschaft (DFG)",
"André Castro",
"Susanne Arndt";
@@ -28,6 +28,9 @@ skos:closeMatch rdf:type owl:ObjectProperty .
dc:title "DFG Fachsystematik - Ontologie - 2024-2028"@de ;
rdfs:comment "DFG Classification of Subject Areas Ontology is being created as part of the TIB Terminology Service"@de ;
rdfs:comment "DFG Fachsystematik - Ontology wurde zur Integration in den TIB Terminology Service erstellt"@de ;
terms:license <https://creativecommons.org/licenses/by/4.0/> ;
terms:license <https://creativecommons.org/licenses/by/4.0/> ;
owl:versionInfo "2024-2028"^^xsd:string ;
owl:versionIRI dfgfo: ;
rdfs:comment "DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology (DFGFO) is aligned with GBV DFG2024 via skos:closeMatch relations. The two semantic artifacts were developed separately, but both teams strive towards alignment. While DFGO defines terms as owl:Class instances, GBV defines them as skos:Concept. More details on GBV DFG2024 at http://uri.gbv.de/terminology/dfg/"@en .


2 changes: 1 addition & 1 deletion scripts/create_ontology.py
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
g_metadata.parse(str(dfg_onto_metadata_fn.absolute()))

g_classes = Graph()
ns_str = 'https://github.com/tibonto/dfgfo/'
ns_str = 'https://w3id.org/dfgfo/2024/'
namespace = Namespace(ns_str)

g_classes.namespace_manager.bind('owl', 'http://www.w3.org/2002/07/owl#', override=False)
3 changes: 3 additions & 0 deletions w3id/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# w3ids for DFGFO

You can find the w3id specification for DFGFO at <https://github.com/perma-id/w3id.org/tree/master/dfgfo>.