Catalog file does not seem to be used for --input-iri
(tested on query
command). Based on the documentation I am not completely sure if it is a bug, or intended behaviour. Yet, for my use-case I would like to use the provided catalog for any IRI around (i.e. not only in owl:imports
statements, but also in --input-iri
parameters).
Example:
test.owl:
@prefix owl: <http://www.w3.org/2002/07/owl#> .
<http://test.org/test.owl> a owl:Ontology ;
owl:imports <http://test.org/test-imported.owl> .
test-imported.owl:
@prefix owl: <http://www.w3.org/2002/07/owl#> .
<http://test.org/test-imported.owl> a owl:Ontology .
test.rq:ASK {}
catalog-custom-name.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="http://test.org/test-imported.owl" uri="test-imported.owl"/>
</catalog>
The following commands succeedsrobot query --catalog catalog-custom-name.xml --input test.owl --query test.rq output.csv
robot query --input test-imported.owl --query test.rq output.csv
while the following failsrobot query --catalog catalog-custom-name.xml --input-iri http://test.org/test-imported.owl --query test.rq output.csv
with org.semanticweb.owlapi.io.OWLOntologyCreationIOException: test.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4