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
Show file tree
Hide file tree
Changes from 2 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
Expand Up @@ -17,8 +17,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)
Expand Down
18 changes: 11 additions & 7 deletions dfgfo.ttl
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dfgfo: <https://github.com/tibonto/dfgfo/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@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 terms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

dc:creator a owl:AnnotationProperty .

dc:description a owl:AnnotationProperty .

dc:title a owl:AnnotationProperty .

terms:license a owl:AnnotationProperty .
dcterms:license a owl:AnnotationProperty .

skos:altLabel a owl:AnnotationProperty .

<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" ;
dc:description "DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology (DFGFO) encodes the DFG Classification of Subject Areas into an ontology, where each subject number are is enconded into a Class with subclass statements following the DFG Classification of Subject Areas hierarchy. Labels are provide German and English." ;
dc:title "DFG Fachsystematik - Ontologie - 2024-2028"@de,
"DFG Classification of Subject Areas Ontology - 2024-2028"@en ;
terms:license <https://creativecommons.org/licenses/by/4.0/> ;
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 wurde zur Integration in den TIB Terminology Service erstellt"@de ;
owl:versionIRI dfgfo: ;
owl:versionInfo "2024-2028"^^xsd:string .

dfgfo:1.11-01 a owl:Class ;
rdfs:label "Prehistory and World Archaeology"@en ;
Expand Down Expand Up @@ -1429,4 +1432,5 @@ dfgfo:2.23 a owl:Class ;
dfgfo:2.22 a owl:Class ;
rdfs:label "Medicine"@en ;
rdfs:subClassOf dfgfo:22 ;
skos:altLabel "Medizin"@de .
skos:altLabel "Medizin"@de .

8 changes: 5 additions & 3 deletions metadata.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -17,7 +18,7 @@ terms:license rdf:type owl:AnnotationProperty .

skos:altLabel rdf:type owl:AnnotationProperty .

<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";
Expand All @@ -26,5 +27,6 @@ skos:altLabel rdf:type owl:AnnotationProperty .
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/> .
# TODO: provide appropriate license - same license should go to github repo
terms:license <https://creativecommons.org/licenses/by/4.0/> ;
owl:versionInfo "2024-2028"^^xsd:string ;
andrecastro0o marked this conversation as resolved.
Show resolved Hide resolved
owl:versionIRI dfgfo: .
2 changes: 1 addition & 1 deletion scripts/create_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
37 changes: 37 additions & 0 deletions w3id/.htaccess
andrecastro0o marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Header set Access-Control-Allow-Origin *
Options +FollowSymLinks
RewriteEngine on

# Specific content-type -> Access respective ontology

# HTML:
# RewriteCond %{HTTP_ACCEPT} text/html
# RewriteRule ^$ https://nfdi4ing.pages.rwth-aachen.de/metadata4ing/metadata4ing/index.html [R=303,L,NE]

RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^(2020)$ https://terminology.tib.eu/ts/ontologies/dfgfo [R=303,L,NE]

RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^([2-9]\d{3})$ https://terminology.tib.eu/ts/ontologies/dfgfo$1 [R=303,L,NE]
SArndt-TIB marked this conversation as resolved.
Show resolved Hide resolved

RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^2020/(\d{1,3}(-\d{2})?$) https://terminology.tib.eu/ts/ontologies/dfgfo/terms?iri=https\%3A\%2F\%2Fgithub.com\%2Ftibonto\%2Fdfgfo\%2F$1 [R=303,L,NE]

RewriteCond %{HTTP_ACCEPT} text/html
RewriteRule ^2024/(\d\.\d{2}(-\d{2})?$|\d{1,2}$) https://terminology.tib.eu/ts/ontologies/dfgfo2024/terms?iri=https\%3A\%2F\%2Fw3id.org\%2Fdfgfo\%2F2024\%2F$1 [R=303,L,NE]


# Turtle 2020
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} application/x-turtle
RewriteRule ^(2020)$ https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/2023-01-17/dfgfo.ttl [R=303,L,NE]

# Turtle 2024
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} application/x-turtle
RewriteRule ^(2024)$ https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/2024-2024-08-31/dfgfo.ttl [R=303,L,NE]

# Turtle with versioning
RewriteCond %{HTTP_ACCEPT} text/turtle [OR]
RewriteCond %{HTTP_ACCEPT} application/x-turtle
RewriteRule ^([2-9]\d{3})$ https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/$1/dfgfo.ttl [R=303,L,NE]
32 changes: 32 additions & 0 deletions w3id/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# w3ids for DFGFO

## What is DFGFO?

DFGFO is an ontology version of the Subject Classification of Deutsche Forschungsgemeinschaft (DFG).

Read more at the GitHub repository at [https://github.com/tibonto/DFG-Fachsystematik-Ontology](https://github.com/tibonto/DFG-Fachsystematik-Ontology).

## Contacts

* Susanne Arndt (GitHub: [SArndt-TIB](https://github.com/SArndt-TIB), Mail: <[email protected]>)
* Dorothea Iglezakis (GitHub: [doigl](https://github.com/doigl), Mail: <[email protected]>)
* André Castro (GitHub: [andrecastro0o](https://github.com/andrecastro0o), Mail: )
<!-- * Name Name ([email protected]) -->

## Redirects

### Version 2024 - 2028

|ID|Accept-Header|Target|Description|
|-|-|-|-|
|<https://w3id.org/dfgfo/2024>|text/turtle|<https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/2024-YYYY-MM-DD/dfgfo.ttl>|Turtle file (.ttl) of the entire ontology (2024 version)|
|<https://w3id.org/dfgfo/2024>|text/html|<https://terminology.tib.eu/ts/ontologies/dfgfo2024>|Landing page of DFGFO 2024 at the TIB Terminology Service|
|<https://w3id.org/dfgfo/2024/<termID>>|text/html|<https://terminology.tib.eu/ts/ontologies/dfgfo2024/terms?iri=https%3A%2F%2Fw3id.org%2Fdfgfo%2F2024%2F<termID>>|Landing page of a specific DFGFO 2024 term at the TIB Terminology Service, f.e. for term '3.16-01 Preparatory and Physical Chemistry of Polymer', the termID would be 3.16-01|
SArndt-TIB marked this conversation as resolved.
Show resolved Hide resolved

### Version 2020-2024

|ID|Accept-Header|Target|Description|
|-|-|-|-|
|<https://w3id.org/dfgfo/2020>|text/turtle|<https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/2023-01-17/dfgfo.ttl>|Turtle file (.ttl) of the entire ontology (2020 version)|
|<https://w3id.org/dfgfo/2020>|text/html|<https://terminology.tib.eu/ts/ontologies/dfgfo>|Landing page of DFGFO 2020 at the TIB Terminology Service|
|<https://w3id.org/dfgfo/2020/<termID>>|text/html|<https://terminology.tib.eu/ts/ontologies/dfgfo/terms?iri=https%3A%2F%2Fgithub.com%2Ftibonto%2Fdfgfo%2F<termID>>|Landing page of a specific DFGFO 2020 term at the TIB Terminology Service, f.e. for term '44 Computer Science, Systems and Electrical Engineering', the termID would be 44|
Loading