Skip to content

Commit

Permalink
Add missing OWL Class type to annotated targets (#90)
Browse files Browse the repository at this point in the history
* Add missing OWL class type to annotated targets

* Update version to 0.2.1
  • Loading branch information
ubyndr authored Oct 14, 2024
1 parent cc4483a commit 83f9d25
Show file tree
Hide file tree
Showing 3 changed files with 250 additions and 243 deletions.
1 change: 1 addition & 0 deletions pandasaurus_cxg/graph_generator/graph_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def add_metadata_nodes(self, metadata_fields: List[str]):
else:
annotated_target = URIRef(self.ns[str(uuid.uuid4())])
self.graph.add((annotated_target, RDFS.label, Literal(label)))
self.graph.add((annotated_target, RDF.type, OWL.Class))
bnode_axiom = BNode()
self.graph.add((bnode_axiom, RDF.type, OWL.Axiom))
self.graph.add((bnode_axiom, OWL.annotatedSource, s))
Expand Down
Loading

0 comments on commit 83f9d25

Please sign in to comment.