Commit 49777c2b authored by Fabien Amarger's avatar Fabien Amarger
Browse files

fix(entities): Do not export cw_source relation and export equivalent_uri subPropertyOf triple

parent 64038e20a687
Pipeline #95890 passed with stages
in 1 minute and 22 seconds
......@@ -32,6 +32,7 @@
yield(CW["{{fragment}}"], RDFS.subPropertyOf, URIRef("{{uri}}"))
{% endfor %}
yield(CW["label"], RDFS.subPropertyOf, RDFS.label)
yield(CW["equivalent_uri"], RDFS.subPropertyOf, OWL.sameAs)
if self.entity.equivalent_uri:
yield (self.uri, OWL.sameAs, URIRef(self.entity.equivalent_uri[0].uri))
......@@ -41,7 +42,7 @@
for triple in triples:
if triple == (self.uri, RDF.type, CW[self.entity.e_schema.type]):
yield (self.uri, RDF.type, URIRef(self.entity.is_instance_of[0].cwuri))
elif triple[1] != CW["cw_source"]:
yield triple
Supports Markdown
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