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

#34 prepare release v. 2024 #35

Merged
merged 5 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
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
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
robot_report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install ROBOT
run: |
wget --quiet https://github.com/ontodev/robot/releases/download/v1.8.1/robot.jar
Expand All @@ -20,14 +20,17 @@ jobs:
- name: test for ERRORs with ROBOT report
run: |
robot report --profile .github/report_profile.txt --input dfgfo.ttl
robot report --profile .github/report_profile.txt --input dfgfo.owl
- name: validate ontology against OWL DL profile
run: |
robot validate-profile --profile DL --input dfgfo.ttl
robot validate-profile --profile DL --input dfgfo.owl
- name: produce report
run: |
robot report --profile .github/report_profile.txt --input dfgfo.ttl --output report.txt
robot report --profile .github/report_profile.txt --input dfgfo.ttl --output report-ttl.txt
robot report --profile .github/report_profile.txt --input dfgfo.owl --output report-owl.txt
- name: report artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: robot_report
path: report.txt
name: robot_reports
path: report-*.txt
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Create a python3 Virtual Environment

Install requirements `pip install -r scripts/requirements.txt`

Run script to create ontology `python scripts/create_ontology.py`. Make sure to use end of line sequence `LF` for [/csv/Fachsystematik_2020-2024.csv](/csv/Fachsystematik_2020-2024.csv).
Run script to create ontology `python scripts/create_ontology.py`. Make sure to use end of line sequence `LF` in the csv file used to create the ontology (for example when working on Windows).

## Other scripts

Expand All @@ -56,11 +56,11 @@ At every push or pull_request a [ROBOT report](http://robot.obolibrary.org/repor
* [HTML page](https://www.dfg.de/en/research-funding/proposal-funding-process/interdisciplinarity/subject-area-structure)
* PDFs
* 2020-2024
* [PDF(en)](https://www.dfg.de/download/pdf/dfg_im_profil/gremien/fachkollegien/amtsperiode_2020_2024/fachsystematik_2020-2024_en_grafik.pdf)
* [PDF(de)](https://www.dfg.de/download/pdf/dfg_im_profil/gremien/fachkollegien/amtsperiode_2020_2024/fachsystematik_2020-2024_de_grafik.pdf)
* [PDF (en)](https://www.dfg.de/download/pdf/dfg_im_profil/gremien/fachkollegien/amtsperiode_2020_2024/fachsystematik_2020-2024_en_grafik.pdf) (link is broken)
* [PDF (de)](/pdf/fachsystematik-2020-2024-de-data.pdf) (local copy)
* 2024-2028
* [PDF(en)](https://www.dfg.de/resource/blob/331950/85717c3edb9ea8bd453d5110849865d3/fachsystematik-2024-2028-en-data.pdf)
* [PDF(de)](https://www.dfg.de/resource/blob/331944/33422f091e941592cdc355038a865e03/fachsystematik-2024-2028-de-data.pdf)
* [PDF (en)](/pdf/fachsystematik-2024-2028-en-data.pdf) (local copy)
* [PDF (de)](/pdf/fachsystematik-2024-2028-de-data.pdf) (local copy)
* Edited CSV - combining both German and English labels
* [2020-2024](/csv/2020-2024/Fachsystematik_2020-2024.csv) (this repo)
* [2024-2028](/csv/2024-2028/Fachsystematik_2024-2028.csv) (this repo)
Expand All @@ -73,4 +73,4 @@ For previous versions (2020-2024) see https://github.com/tibonto/DFG-Fachsystema

*Are you or your institution using the DFG-Fachsystematik-Ontology? We would like to hear from you (via an [issue](https://github.com/tibonto/DFG-Fachsystematik-Ontology/issues/)), and include your use-case in this section.*

* [DaRUS - the data repository of the University of Stuttgart](https://darus.uni-stuttgart.de/): DFGO is used to classify datasets according to topic, see example [10.18419/darus-3988](https://darus.uni-stuttgart.de/dataset.xhtml?persistentId=doi:10.18419/darus-3988)
* [DaRUS - the data repository of the University of Stuttgart](https://darus.uni-stuttgart.de/): DFGFO is used to classify datasets according to topic, see example [10.18419/darus-3988](https://darus.uni-stuttgart.de/dataset.xhtml?persistentId=doi:10.18419/darus-3988)
2,010 changes: 2,010 additions & 0 deletions dfgfo.owl

Large diffs are not rendered by default.

30 changes: 14 additions & 16 deletions dfgfo.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


dc:creator a owl:AnnotationProperty .

dc:description a owl:AnnotationProperty .
Expand All @@ -19,20 +18,6 @@ skos:altLabel a owl:AnnotationProperty .

skos:closeMatch a owl:ObjectProperty .

<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 ;
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 ;
owl:versionIRI dfgfo: ;
owl:versionInfo "2024-2028"^^xsd:string .

dfgfo:111-01 a owl:Class ;
rdfs:label "Prehistory and World Archaeology"@en ;
rdfs:subClassOf dfgfo:111 ;
Expand Down Expand Up @@ -1317,6 +1302,20 @@ dfgfo:451-06 a owl:Class ;
skos:altLabel "Geotechnik, Wasserbau"@de ;
skos:closeMatch <http://uri.gbv.de/terminology/dfg2024/451-06> .

<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 ;
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 ;
owl:versionIRI <https://w3id.org/dfgfo/2024> ;
owl:versionInfo "2024-2028"^^xsd:string .

dfgfo:23 a owl:Class ;
rdfs:label "Agriculture, Forestry and Veterinary Medicine"@en ;
rdfs:subClassOf dfgfo:2 ;
Expand Down Expand Up @@ -1719,4 +1718,3 @@ dfgfo:222 a owl:Class ;
skos:altLabel "Medizin"@de ;
skos:closeMatch <http://uri.gbv.de/terminology/dfg2024/222> .


Binary file modified docs/dfgfo-hierarchies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion metadata.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ skos:closeMatch rdf:type owl:ObjectProperty .
rdfs:comment "DFG Fachsystematik - Ontology wurde zur Integration in den TIB Terminology Service erstellt"@de ;
terms:license <https://creativecommons.org/licenses/by/4.0/> ;
owl:versionInfo "2024-2028"^^xsd:string ;
owl:versionIRI dfgfo: ;
owl:versionIRI <https://w3id.org/dfgfo/2024> ;
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 .


Binary file added pdf/fachsystematik-2016-2019-de-grafik-data.pdf
Binary file not shown.
Binary file added pdf/fachsystematik-2020-2024-de-data.pdf
Binary file not shown.
Binary file added pdf/fachsystematik-2024-2028-de-data.pdf
Binary file not shown.
Binary file added pdf/fachsystematik-2024-2028-en-data.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions scripts/create_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'''
dfg_onto_metadata_fn = Path(__file__).parent.parent / 'metadata.ttl'
dfg_onto_fn = Path(__file__).parent.parent / 'dfgfo.ttl'
dfg_onto_fn_owl = Path(__file__).parent.parent / 'dfgfo.owl'
#dfg_csv_en = Path(__file__).parent.parent / 'csv' / '2020-2024' / 'Fachsystematik_2020-2024.csv'
dfg_csv_en = Path(__file__).parent.parent / 'csv' / '2024-2028' / 'Fachsystematik_2024-2028.csv'
print(dfg_csv_en)
Expand Down Expand Up @@ -122,3 +123,4 @@ def create_class(graph, ns, node_name, labels, parent):
#with open(dfg_onto_fn, 'w') as dfg_onto:
# dfg_onto.write(g_joint.serialize())
g_joint.serialize(destination=dfg_onto_fn, encoding="utf-8")
g_joint.serialize(destination=dfg_onto_fn_owl, encoding="utf-8", format="xml")