emmo-repo / EMMOntoPy

Library for representing and working with ontologies in Python
https://emmo-repo.github.io/EMMOntoPy
BSD 3-Clause "New" or "Revised" License
40 stars 9 forks source link

Wrong prefix for imoprted ontologies #704

Open francescalb opened 9 months ago

francescalb commented 9 months ago

When importing the following example (from tests/testonto_for_copy), the prefix for testonto becomes 0.1.0 instead of testonto.

@prefix : http://emmo.info/copytestonto# . @prefix owl: http://www.w3.org/2002/07/owl# . @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# . @prefix xml: http://www.w3.org/XML/1998/namespace . @prefix xsd: http://www.w3.org/2001/XMLSchema# . @prefix rdfs: http://www.w3.org/2000/01/rdf-schema# . @prefix skos: http://www.w3.org/2004/02/skos/core# . @base http://emmo.info/copytestonto .

http://emmo.info/copytestonto rdf:type owl:Ontology ; owl:versionIRI http://emmo.info/copytestonto/0.1.0 ; owl:imports http://emmo.info/testonto/0.1.0 ; owl:versionInfo "0.1.0" .

:testclass rdf:type owl:Class ; rdfs:subClassOf owl:Thing ; skos:prefLabel "CopyClass"@en .