Closed maximelefrancois86 closed 1 year ago
the core.ttl of the master is the one we should keep; this branch removed the base
the core.ttl of the master is the one we should keep; this branch removed the base
We can put it back if preferred. However there is no relative IRI in this document
my 2 cents were that it is better to have an explicit base, but just my 2 cents. Also the two files diverged a lot.
I solved the conflict by:
:
prefix to hmas:
@base
declarationsSorry @maximelefrancois86 but I really prefer the current version of core in terms of namespaces, reordering of definitions, etc. I would like to keep it that way.
I can do the conflict solving for that if you want me to.
Note: I opened PR #128 to fix Issue #122 using the core.ttl
version on the master branch. We should achieve consensus and merge this PR before we merge PR #128.
Capturing here my (personal) preference for base + empty/default prefix solution, more precisely:
@base <https://purl.org/onto/> .
@prefix : <> .
(...)
:onto a owl:Ontology ;
vann:preferredNamespacePrefix "ont" ;
vann:preferredNamespaceUri <> ;
(...)
:AClass a owl:Class ;
rdfs:isDefinedBy :onto ;
(...)
My preference is to use the empty/default prefix for the resources defined/described in the document making it obvious in the document what is locally defined (empty/default prefix) vs what is defined somewhere else (other prefixes). This practice also make the code lighter in my opinion.
Then defining the base and using <> allow us to have one and only occurrence of the namespace and cover both the use of prefixes and local references in the document.
I don't have a strong case here, just a personal preference.
This pull request corrects:
Each term that is defined by a vocabulary will now be the subject of a redirection in the generated htaccess file.
For example to enable a redirection from
/hmas/Agent
to/hmas/core#Agent
, you need to include the following triple in thecore.ttl
vocabulary:hmas:Agent rdfs:isDefinedBy hmas:core
Another example: to enable a redirection from
/hmas/TestInteraction
to/hmas/interaction#Test
, you need to include the following triple in theinteraction.ttl
vocabulary:hmas:Test rdfs:isDefinedBy hmas:interaction