Skip to content

Commit

Permalink
added #7 orthogonalHypernym/orthogonalHyponym to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
simongray committed Sep 28, 2021
1 parent 29448b1 commit 6321843
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions resources/schemas/dannet-schema-2022.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

:orthogonalHypernym a owl:ObjectProperty ;
rdfs:domain ontolex:LexicalConcept ;
rdfs:range ontolex:LexicalConcept ;
rdfs:comment "Hypernyms that are orthogonal to the taxonomy; see: <https://cst.ku.dk/projekter/dannet/#heading-1612789460891>"@en ;
rdfs:label "Orthogonal hypernym"@en ;
owl:inverseOf :orthogonalHyponym .

:orthogonalHyponym a owl:ObjectProperty ;
rdfs:domain ontolex:LexicalConcept ;
rdfs:range ontolex:LexicalConcept ;
rdfs:comment "Hyponyms that are orthogonal to the taxonomy; see: <https://cst.ku.dk/projekter/dannet/#heading-1612789460891>"@en ;
rdfs:label "Orthogonal hyponym"@en ;
owl:inverseOf :orthogonalHypernym .

:concept a owl:ObjectProperty ;
rdfs:domain ontolex:LexicalConcept ;
rdfs:range :Concept ;
Expand Down
3 changes: 1 addition & 2 deletions src/main/dk/wordnet/bootstrap.clj
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@
obj (synset-uri obj-id)]
(if (and (= taxonomic "nontaxonomic")
(= rel "has_hyperonym"))
;; TODO: define in OWL schema
#{[subj :dns/hypernym_ortho obj]
#{[subj :dns/orthogonalHypernym obj]
[subj (gwa-rel rel) obj]}
(if-let [rel* (gwa-rel rel)]
#{[subj rel* obj]}
Expand Down

0 comments on commit 6321843

Please sign in to comment.