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

ASF subversion and git services commented on JENA-2018:
-------------------------------------------------------

Commit 38590999a6042454cc5a7e4e477b5308df594494 in jena's branch 
refs/heads/master from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=3859099 ]

JENA-2018: Extract a base URI if exactly one


> shacl parse: Getting RDFDataException - More than one match : (ANY rdf:type 
> owl:Ontology)
> -----------------------------------------------------------------------------------------
>
>                 Key: JENA-2018
>                 URL: https://issues.apache.org/jira/browse/JENA-2018
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: SHACL
>    Affects Versions: Jena 3.17.0
>         Environment: Replicate by running
> {{shapesModel = 
> ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM)}}{{.read(stream);}}
>  {{Shapes.parse(shapesModel);}}
> Content of the file loaded:
> {{@prefix owl: <http://www.w3.org/2002/07/owl#> .}}
> {{@prefix ex:  <http://example.org#> .}}
> {{ex:foo a owl:Ontology ;}}
> {{    owl:imports ex:bar .}}
> Content of the referenced file:
> {{@prefix owl: <http://www.w3.org/2002/07/owl#> .}}
> {{@prefix ex:  <http://example.org#> .}}
> {{ex:bar a owl:Ontology .}}
>            Reporter: Jan Rosecky
>            Assignee: Andy Seaborne
>            Priority: Major
>
> When running shacl parse on shapes model loaded as an ontology with several 
> owl:imports, I'm now getting
> {{RDFDataException - More than one match : (ANY rdf:type owl:Ontology)}}
> Of course, there is one triple {{<xx> a owl:Ontology}} in each of the 
> imported files but always only one in a given file.
> This only started to happen in the new version of Jena (3.17.0), no such 
> issue experienced with 3.16.0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to