[ 
https://issues.apache.org/jira/browse/JENA-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451625#comment-13451625
 ] 

Andy Seaborne commented on JENA-319:
------------------------------------

I think this is a good point for JENA-189 (Jena3 /technical).

None of the API calls resolve IRIs nor require absolute IRIs.  It's historical 
- addNamedModel simply follows what all the API calls do.

The same happens with

SELECT * { <s> ?p ?o }

SPARQL parsing will resolve <s>, but createResource("s") does not.

Resolving isn't complete straight forward (or cheap).  API calls can be 
expected to be much higher frequence than SPARQL queries.

Requiring absolute IRIs in the first place as a policy is one design to follow 
and personally, I favour using an IRI object, not strings, which requires 
absolute IRIs.  Resolution relative to the current local directory isn't very 
webby.

                
> If the URI for the named graph in a Dataset does not contain a colon ":" it 
> is accepted but can not be retrieved.
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: JENA-319
>                 URL: https://issues.apache.org/jira/browse/JENA-319
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Claude Warren
>            Assignee: Andy Seaborne
>         Attachments: DatasetGraphNameTest.java
>
>
> If dataset.addNamedModel(uri, m) is called and 'uri' does not have a colon 
> the query select * { graph <uri> { ?s ?o ?p }} does not return any results 
> even though select ?g { graph ?g { ?s ?o ?p }} will return the uri as ?g.
> JUnit based test case attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to