-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog not used for --input-iri #1030
Comments
I think this is by design, you are assumed to know the paths or urls of
your inputs. I can see the use case for using logical names instead but I
think technically introducing this could be breaking behavior if introduced?
…On Tue, Jul 19, 2022 at 11:59 PM Petr Křemen ***@***.***> wrote:
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 succeeds
robot 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 fails
'robot 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
—
Reply to this email directly, view it on GitHub
<#1030>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMOINFI3EKIPVJ3AFVRTVU6PTZANCNFSM54COVUJA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes, this is intended behaviour. Checking for a local catalogue file is cheap and fast, and matches Protege's behaviour. So ROBOT makes a guess and checks for local catalogs without asking. Making a network request based on a guess could take seconds and cause other unexpected behaviour. @psiotwo are you proposing that when using Maybe we could add an explicit |
@jamesaoverton I think you're responding to something different. To me the request is totally sensible. An IRI input specified via I think it's just a bug. The catalog is added to the manager before loading, but then an
|
@cmungall If the current behaviour is not a bug :-) then probably yes - it might happen that if the In case the current behaviour is correct, at least the parameter name |
@jamesaoverton my point was different (not remote catalogs, but using local catalogs for resolving physical URLs of |
[#1030] --input-iri uses catalog file
Checked. Works in 1.9.1. |
Catalog file does not seem to be used for
--input-iri
(tested onquery
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 inowl:imports
statements, but also in--input-iri
parameters).Example:
test.owl:
test-imported.owl:
test.rq:
ASK {}
catalog-custom-name.xml
The following commands succeeds
robot 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 fails
robot 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
The text was updated successfully, but these errors were encountered: