You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the standard operations performed by the ODK when preparing import modules is to insert a dc:source ontology annotation with the value of the ontology’s version IRI. This is done with robot query --update and the following SPARQL query:
While the query itself is very simple, going through all the convoluted process to execute SPARQL queries with ROBOT (converting the ontology from the OWLAPI model to the Jena model, running the query on the Jena model, dumping the updated model in Turtle, then parsing the dumped Turtle back into a OWLAPI model) is a considerable waste of resources for a task that could be done with a handful of lines of Java code. In fact, that task is so resource-intensive that the ODK has to disable it for “large” import modules.
It would be very convenient if ROBOT allowed to perform that task without having to rely on SPARQL.
I propose that it should be possible to do something like this:
That is, make it possible to use %{version_iri} or %{ontology_iri} as placeholders within the values of the various *-annotation options, to be replaced with the version IRI or the ontology IRI of the current ontology.
Thoughts?
The text was updated successfully, but these errors were encountered:
The idea was that interpolation would not be enabled by default, so that, if people have been using %{version_iri} in annotate commands before, they could still do so without any unexpected replacement unless they explicitly enable that feature.
Admittedly this is a very unlikely possibility. If you think it’s so unlikely that it is not worth it to have a guard rail, and that we can always perform interpolation without hiding the feature behind an option, that would be fine with me.
One of the standard operations performed by the ODK when preparing import modules is to insert a
dc:source
ontology annotation with the value of the ontology’s version IRI. This is done withrobot query --update
and the following SPARQL query:While the query itself is very simple, going through all the convoluted process to execute SPARQL queries with ROBOT (converting the ontology from the OWLAPI model to the Jena model, running the query on the Jena model, dumping the updated model in Turtle, then parsing the dumped Turtle back into a OWLAPI model) is a considerable waste of resources for a task that could be done with a handful of lines of Java code. In fact, that task is so resource-intensive that the ODK has to disable it for “large” import modules.
It would be very convenient if ROBOT allowed to perform that task without having to rely on SPARQL.
I propose that it should be possible to do something like this:
That is, make it possible to use
%{version_iri}
or%{ontology_iri}
as placeholders within the values of the various*-annotation
options, to be replaced with the version IRI or the ontology IRI of the current ontology.Thoughts?
The text was updated successfully, but these errors were encountered: