Skip to content
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

Prefix collision #553

Open
CarterBeauBenson opened this issue Nov 13, 2024 · 1 comment
Open

Prefix collision #553

CarterBeauBenson opened this issue Nov 13, 2024 · 1 comment

Comments

@CarterBeauBenson
Copy link
Contributor

CarterBeauBenson commented Nov 13, 2024

@cameronmore and I are getting ready to transition ontologies over to 2.0 and are excited to do so. As a test, we updated the IRIs in CPO and noticed a prefix collision.

The CCO base file contains the following prefix declaration.
@Prefix cco: https://www.commoncoreontologies.org/ .

When we ran the ROBOT mapping on CPO, this line (add-prefix "cco2: https://www.commoncoreontologies.org/") from the ROBOT command successfully added the prefix declaration "@Prefix cco2: https://www.commoncoreontologies.org/" and preserved the prefix "cco" for the old namespace (cco: http://www.ontologyrepository.com/CommonCoreOntologies/ .).

Here is a sample of code:

http://www.ontologyrepository.com/CommonCoreOntologies/ActOfRequestingInformation (hashes removed to avoid markdown)
cco:ActOfRequestingInformation rdf:type owl:Class ;
rdfs:subClassOf cco2:ont00000769 ;
cco:definition "A directive communication act that prescribes the finding and delivering of information." ;
rdfs:label "ActOfRequestingInformation" ;
cco2:ont00001760 "http://www.ontologyrepository.com/CommonCoreOntologies/Domain/CognitiveProcessOntology" .

We hypothesized that this was intentionally done so that an extension ontology class IRI that uses the old namespace prefix does not collide with the new namespace prefix. For example, if the "cco2" prefix was not created, two ontology namespaces would have the same prefix when the ROBOT command is executed.

That said, this problem reoccurs when CCO 2.0 is imported by CPO, since the "cco" prefix is pulling double duty. Furthermore, when CCO 2,0 is imported by CPO, https://www.commoncoreontologies.org has two prefixes.

@CarterBeauBenson
Copy link
Contributor Author

After talking to @mark-jensen, this is not a problem, but I will let him explain why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant