Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Jena 3.17.0
-
None
-
None
-
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 .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 .
Description
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