Commit b3563c5b authored by Fabien Amarger's avatar Fabien Amarger
Browse files

feat(entities): Use subPropertyOf, subClassOf to define a dedicated sub...

feat(entities): Use subPropertyOf, subClassOf to define a dedicated sub vocabulary for the yams model
parent db620f110c57
Pipeline #95775 passed with stages
in 2 minutes and 54 seconds
......@@ -17,6 +17,6 @@
CW = self._use_namespace("cubicweb")
RDFS = self._use_namespace("rdfs")
{% for fragment, uri in entitytype_fragment_to_uri.items() %}
yield(CW["{{fragment}}"], OWL.equivalentClass, URIRef("{{uri}}"))
yield(CW["{{fragment}}"], RDFS.subClassOf, URIRef("{{uri}}"))
{% endfor %}
{% for fragment, uri in relationtype_fragment_to_uri.items() %}
......@@ -21,4 +21,4 @@
{% endfor %}
{% for fragment, uri in relationtype_fragment_to_uri.items() %}
yield(CW["{{fragment}}"], OWL.equivalentProperty, URIRef("{{uri}}"))
yield(CW["{{fragment}}"], RDFS.subPropertyOf, URIRef("{{uri}}"))
{% endfor %}
......@@ -24,4 +24,3 @@
{% endfor %}
yield(CW["label"], OWL.equivalentProperty, RDFS.label)
yield(CW["equivalent_uri"], OWL.equivalentProperty, OWL.sameAs)
yield(CW["label"], RDFS.subPropertyOf, RDFS.label)
if self.entity.equivalent_uri:
......@@ -27,4 +26,5 @@
if self.entity.equivalent_uri:
yield(CW["equivalent_uri"], RDFS.subPropertyOf, OWL.sameAs)
yield (self.uri, OWL.sameAs, URIRef(self.entity.equivalent_uri[0].uri))
yield from super().triples()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment