Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
OWL2YAMS
Commits
49777c2b22b2
Commit
49777c2b
authored
Nov 24, 2021
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
owl2yams/generate_entities.py
View file @
49777c2b
...
...
@@ -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))
el
se
:
el
if triple[1] != CW["cw_source"]
:
yield triple
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment