Skip to content
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
30 changes: 28 additions & 2 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# More information: https://github.com/INCATools/ontology-development-kit/

# Fingerprint of the configuration file when this Makefile was last generated
CONFIG_HASH= 8e49e65079d4642342c79bb2d2ac5b367c8f7393d421d9e967f5acb09362febf
CONFIG_HASH= bf1cf9af7b423f865b2353fe9e86936080ddb40f5bce38c3ef1812a7bc59b2c9


# ----------------------------------------
Expand Down Expand Up @@ -188,7 +188,7 @@ all_main: $(MAIN_FILES)
# ----------------------------------------


IMPORTS = iao bfo ro schulart-BB schulart-BE schulart-BW schulart-BY schulart-HB schulart-HE schulart-HH schulart-MV schulart-NI schulart-NW schulart-RP schulart-SH schulart-SL schulart-SN schulart-ST schulart-TH schulfach-BB schulfach-BE schulfach-BW schulfach-BY schulfach-HB schulfach-HE schulfach-HH schulfach-MV schulfach-NI schulfach-NW schulfach-RP schulfach-SH schulfach-SL schulfach-SN schulfach-ST schulfach-TH
IMPORTS = iao bfo ro skos schulart-BB schulart-BE schulart-BW schulart-BY schulart-HB schulart-HE schulart-HH schulart-MV schulart-NI schulart-NW schulart-RP schulart-SH schulart-SL schulart-SN schulart-ST schulart-TH schulfach-BB schulfach-BE schulfach-BW schulfach-BY schulfach-HB schulfach-HE schulfach-HH schulfach-MV schulfach-NI schulfach-NW schulfach-RP schulfach-SH schulfach-SL schulfach-SN schulfach-ST schulfach-TH

IMPORT_ROOTS = $(patsubst %, $(IMPORTDIR)/%_import, $(IMPORTS))
IMPORT_OWL_FILES = $(foreach n,$(IMPORT_ROOTS), $(n).owl)
Expand Down Expand Up @@ -422,6 +422,25 @@ $(IMPORTDIR)/%_import.owl: $(MIRRORDIR)/%.owl $(IMPORTDIR)/%_terms.txt \

.PRECIOUS: $(IMPORTDIR)/%_import.owl

## Module for ontology: skos (slme)
$(IMPORTDIR)/skos_import.owl: $(MIRRORDIR)/skos.owl $(IMPORTDIR)/skos_terms.txt $(IMPORTSEED) | all_robot_plugins
$(ROBOT) annotate --input $< --remove-annotations \
odk:normalize --add-source true \
extract --term-file $(IMPORTDIR)/skos_terms.txt $(T_IMPORTSEED) \
--copy-ontology-annotations true --force true \
--individuals include \
--method SUBSET \
remove $(foreach p, $(ANNOTATION_PROPERTIES), --term $(p)) \
--term rdfs:label \
--term IAO:0000115 \
--term OMO:0002000 \
--term-file $(IMPORTDIR)/skos_terms.txt $(T_IMPORTSEED) \
--select complement --select annotation-properties \
odk:normalize --base-iri https://w3id.org/lehrplan/ontology \
--subset-decls true --synonym-decls true \
repair --merge-axiom-annotations true \
$(ANNOTATE_CONVERT_FILE)

## Module for ontology: schulart-BB (mirror)
$(IMPORTDIR)/schulart-BB_import.owl: $(MIRRORDIR)/schulart-BB.owl | all_robot_plugins
$(ROBOT) annotate --input $< --remove-annotations \
Expand Down Expand Up @@ -839,6 +858,13 @@ mirror-ro: | $(TMPDIR)
$(ROBOT) convert -I http://purl.obolibrary.org/obo/ro/core.owl -o $(TMPDIR)/$@.owl


## ONTOLOGY: skos
.PHONY: mirror-skos
.PRECIOUS: $(MIRRORDIR)/skos.owl
mirror-skos: | $(TMPDIR)
$(ROBOT) convert -I http://www.w3.org/TR/skos-reference/skos.rdf -o $(TMPDIR)/$@.owl


## ONTOLOGY: schulart-BB
.PHONY: mirror-schulart-BB
.PRECIOUS: $(MIRRORDIR)/schulart-BB.owl
Expand Down
1 change: 1 addition & 0 deletions src/ontology/catalog-v001.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/iao_import.owl" uri="imports/iao_import.owl" />
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/bfo_import.owl" uri="imports/bfo_import.owl" />
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/ro_import.owl" uri="imports/ro_import.owl" />
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/skos_import.owl" uri="imports/skos_import.owl" />
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/schulart-BB_import.owl" uri="imports/schulart-BB_import.owl" />
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/schulart-BE_import.owl" uri="imports/schulart-BE_import.owl" />
<uri name="https://w3id.org/lehrplan/ontology/lp/imports/schulart-BW_import.owl" uri="imports/schulart-BW_import.owl" />
Expand Down
104 changes: 104 additions & 0 deletions src/ontology/imports/skos_import.owl
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
Prefix(:=<https://w3id.org/lehrplan/ontology/lp/imports/skos_import.owl#>)
Prefix(owl:=<http://www.w3.org/2002/07/owl#>)
Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)
Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)
Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)
Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)


Ontology(<https://w3id.org/lehrplan/ontology/lp/imports/skos_import.owl>
<https://w3id.org/lehrplan/ontology/lp/releases/2026-01-23/imports/skos_import.owl>
Annotation(owl:versionInfo "2026-01-23")

Declaration(ObjectProperty(<http://www.w3.org/2004/02/skos/core#closeMatch>))
Declaration(ObjectProperty(<http://www.w3.org/2004/02/skos/core#exactMatch>))
Declaration(ObjectProperty(<http://www.w3.org/2004/02/skos/core#topConceptOf>))
Declaration(AnnotationProperty(<http://purl.org/dc/terms/creator>))
Declaration(AnnotationProperty(<http://purl.org/dc/terms/description>))
Declaration(AnnotationProperty(<http://purl.org/dc/terms/title>))
Declaration(AnnotationProperty(<http://www.w3.org/2004/02/skos/core#altLabel>))
Declaration(AnnotationProperty(<http://www.w3.org/2004/02/skos/core#definition>))
Declaration(AnnotationProperty(<http://www.w3.org/2004/02/skos/core#editorialNote>))
Declaration(AnnotationProperty(<http://www.w3.org/2004/02/skos/core#example>))
Declaration(AnnotationProperty(<http://www.w3.org/2004/02/skos/core#prefLabel>))
Declaration(AnnotationProperty(<http://www.w3.org/2004/02/skos/core#scopeNote>))
############################
# Annotation Properties
############################

# Annotation Property: <http://www.w3.org/2004/02/skos/core#altLabel> (alternative label)

AnnotationAssertion(rdfs:comment <http://www.w3.org/2004/02/skos/core#altLabel> "The range of skos:altLabel is the class of RDF plain literals."@en)
AnnotationAssertion(rdfs:comment <http://www.w3.org/2004/02/skos/core#altLabel> "skos:prefLabel, skos:altLabel and skos:hiddenLabel are pairwise disjoint properties."@en)
AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#altLabel> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#altLabel> "alternative label"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#altLabel> "An alternative lexical label for a resource."@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#example> <http://www.w3.org/2004/02/skos/core#altLabel> "Acronyms, abbreviations, spelling variants, and irregular plural/singular forms may be included among the alternative labels for a concept. Mis-spelled terms are normally included as hidden labels (see skos:hiddenLabel)."@en)
SubAnnotationPropertyOf(<http://www.w3.org/2004/02/skos/core#altLabel> rdfs:label)

# Annotation Property: <http://www.w3.org/2004/02/skos/core#definition> (definition)

AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#definition> "definition"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#definition> "A statement or formal explanation of the meaning of a concept."@en)

# Annotation Property: <http://www.w3.org/2004/02/skos/core#editorialNote> (editorial note)

AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#editorialNote> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#editorialNote> "editorial note"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#editorialNote> "A note for an editor, translator or maintainer of the vocabulary."@en)

# Annotation Property: <http://www.w3.org/2004/02/skos/core#example> (example)

AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#example> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#example> "example"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#example> "An example of the use of a concept."@en)

# Annotation Property: <http://www.w3.org/2004/02/skos/core#prefLabel> (preferred label)

AnnotationAssertion(rdfs:comment <http://www.w3.org/2004/02/skos/core#prefLabel> "A resource has no more than one value of skos:prefLabel per language tag, and no more than one value of skos:prefLabel without language tag."@en)
AnnotationAssertion(rdfs:comment <http://www.w3.org/2004/02/skos/core#prefLabel> "The range of skos:prefLabel is the class of RDF plain literals."@en)
AnnotationAssertion(rdfs:comment <http://www.w3.org/2004/02/skos/core#prefLabel> "skos:prefLabel, skos:altLabel and skos:hiddenLabel are pairwise
disjoint properties."@en)
AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#prefLabel> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#prefLabel> "preferred label"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#prefLabel> "The preferred lexical label for a resource, in a given language."@en)
SubAnnotationPropertyOf(<http://www.w3.org/2004/02/skos/core#prefLabel> rdfs:label)

# Annotation Property: <http://www.w3.org/2004/02/skos/core#scopeNote> (scope note)

AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#scopeNote> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#scopeNote> "scope note"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#scopeNote> "A note that helps to clarify the meaning and/or the use of a concept."@en)


############################
# Object Properties
############################

# Object Property: <http://www.w3.org/2004/02/skos/core#closeMatch> (has close match)

AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#closeMatch> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#closeMatch> "has close match"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#closeMatch> "skos:closeMatch is used to link two concepts that are sufficiently similar that they can be used interchangeably in some information retrieval applications. In order to avoid the possibility of \"compound errors\" when combining mappings across more than two concept schemes, skos:closeMatch is not declared to be a transitive property."@en)
SymmetricObjectProperty(<http://www.w3.org/2004/02/skos/core#closeMatch>)

# Object Property: <http://www.w3.org/2004/02/skos/core#exactMatch> (has exact match)

AnnotationAssertion(rdfs:comment <http://www.w3.org/2004/02/skos/core#exactMatch> "skos:exactMatch is disjoint with each of the properties skos:broadMatch and skos:relatedMatch."@en)
AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#exactMatch> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#exactMatch> "has exact match"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#exactMatch> "skos:exactMatch is used to link two concepts, indicating a high degree of confidence that the concepts can be used interchangeably across a wide range of information retrieval applications. skos:exactMatch is a transitive property, and is a sub-property of skos:closeMatch."@en)
SubObjectPropertyOf(<http://www.w3.org/2004/02/skos/core#exactMatch> <http://www.w3.org/2004/02/skos/core#closeMatch>)
SymmetricObjectProperty(<http://www.w3.org/2004/02/skos/core#exactMatch>)
TransitiveObjectProperty(<http://www.w3.org/2004/02/skos/core#exactMatch>)

# Object Property: <http://www.w3.org/2004/02/skos/core#topConceptOf> (is top concept in scheme)

AnnotationAssertion(rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core#topConceptOf> <http://www.w3.org/2004/02/skos/core>)
AnnotationAssertion(rdfs:label <http://www.w3.org/2004/02/skos/core#topConceptOf> "is top concept in scheme"@en)
AnnotationAssertion(<http://www.w3.org/2004/02/skos/core#definition> <http://www.w3.org/2004/02/skos/core#topConceptOf> "Relates a concept to the concept scheme that it is a top level concept of."@en)



)
3 changes: 3 additions & 0 deletions src/ontology/imports/skos_terms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
http://www.w3.org/2004/02/skos/core#exactMatch
http://www.w3.org/2004/02/skos/core#closeMatch
http://www.w3.org/2004/02/skos/core#topConceptOf
1 change: 1 addition & 0 deletions src/ontology/lp-edit.owl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Import(<https://w3id.org/lehrplan/ontology/lp/imports/schulfach-SL_import.owl>)
Import(<https://w3id.org/lehrplan/ontology/lp/imports/schulfach-SN_import.owl>)
Import(<https://w3id.org/lehrplan/ontology/lp/imports/schulfach-ST_import.owl>)
Import(<https://w3id.org/lehrplan/ontology/lp/imports/schulfach-TH_import.owl>)
Import(<https://w3id.org/lehrplan/ontology/lp/imports/skos_import.owl>)
Annotation(<http://purl.org/dc/terms/creator> <https://orcid.org/0000-0001-6378-2618>)
Annotation(<http://purl.org/dc/terms/creator> <https://orcid.org/0000-0001-7192-7143>)
Annotation(<http://purl.org/dc/terms/creator> "Almut Steinlein"@de)
Expand Down
8 changes: 4 additions & 4 deletions src/ontology/lp-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import_group:
#- id: schulfach
# mirror_from: https://w3id.org/schulfach
# module_type: mirror
#- id: skos
# mirror_from: http://www.w3.org/TR/skos-reference/skos.rdf
# module_type: slme
# module_type_slme: SUBSET
- id: skos
mirror_from: http://www.w3.org/TR/skos-reference/skos.rdf
module_type: slme
module_type_slme: SUBSET

- id: schulart-BB
mirror_from: https://raw.githubusercontent.com/FWU-DE/schulart-ontologie/refs/tags/1.0.0/src/ontology/components/schools-bb.owl
Expand Down