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

Noria ontologies and kos lack a default namespace #5

Open
thomashassan35 opened this issue Jun 14, 2024 · 6 comments
Open

Noria ontologies and kos lack a default namespace #5

thomashassan35 opened this issue Jun 14, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@thomashassan35
Copy link

thomashassan35 commented Jun 14, 2024

The ontology/kos files use the @base statement but do not define a default namespace with the prefix : <http://www.Example.org/> statement.
Most turtle parsers (if not all) are unable to provide the @base value as it is neither a prefix or a statement. In ontology files this has almost no implications but for the kos vocabulary this makes it impractical to determine the namespace of the vocabulary.
The kos file could have both the @base and the equivalent default namespace with no other change.

@GenEars
Copy link
Member

GenEars commented Jun 14, 2024

The ontology/kos files use the @base statement but do not define a default namespace with the prefix : <http://www.Example.org/> statement. Most turtle parsers (if not all) are unable to provide the @base value as it is neither a prefix or a statement. In ontology files this has almost no implications but for the kos vocabulary this makes it impractical to determine the namespace of the vocabulary. The kos file could have both the @base and the equivalent default namespace with no other change.

Hello @thomashassan35, and thanks for your proposal.
Would you agree on something like what follows?

@prefix noria-kos: <https://w3id.org/noria/kos/> .

@rtroncy
Copy link

rtroncy commented Jun 14, 2024

The shortname noria-kos is fine but more importantly, the default namespace should be attached to this namespace URI

@GenEars
Copy link
Member

GenEars commented Jun 14, 2024

The shortname noria-kos is fine but more importantly, the default namespace should be attached to this namespace URI

Thanks for the remark @rtroncy.

Considering noria as the default namespace, refactoring NORIA-O would then sum to:

  • Declare @prefix noria: <https://w3id.org/noria/ontology/> . in the NORIA-O's kos file.
  • Modify the current base of the NORIA-O's kos file to @base <https://w3id.org/noria/ontology/kos/> .
  • Rework references to kos entities, when done using URIs, in the NORIA-O ontology and RML examples.

@thomashassan35 any remark on this? considering that the underpinning idea is, beside solving the Turtle parser issue you have mentioned, you would have a single namespace to refer to both the NORIA-O core concepts and the NORIA-O controlled vocabulary.

@thomashassan35
Copy link
Author

@GenEars thanks for the quick response and proposal.

Yes I think your proposal is a good approach, it makes more sense to have a common root namespace

GenEars added a commit that referenced this issue Aug 22, 2024
….org/noria/ontology/kos/>, relates to #5

Modified the URI of the "noria-kos" ConceptScheme from <https://w3id.org/noria/kos> to <https://w3id.org/noria/ontology/kos>, relates to #5

Signed-off-by: lionel.tailhardat <[email protected]>
@GenEars GenEars self-assigned this Aug 22, 2024
@GenEars GenEars added the enhancement New feature or request label Aug 22, 2024
GenEars added a commit that referenced this issue Aug 22, 2024
…ia/ontology/>, relates to #5

Fixed rdfs:range of noria:troubleTicketCriticity to <kos/TroubleTicket/trouble-category> for proper dereferencing.
Fixed rdfs:range of noria:alarmSeverity to <kos/Notification/Severity/PerceivedSeverity> for proper dereferencing.
Fixed rdfs:seeAlso of noria:Resource to <kos/Resource> for proper dereferencing.
Modified rdfs:seeAlso of noria:Locus and noria:Room for direct reference of the bot namespace.
Modified rdfs:range of noria:applicationModuleSlaLevel and noria:applicationModuleStatus

Signed-off-by: lionel.tailhardat <[email protected]>
GenEars added a commit that referenced this issue Aug 22, 2024
GenEars added a commit that referenced this issue Aug 22, 2024
@GenEars
Copy link
Member

GenEars commented Aug 22, 2024

@GenEars thanks for the quick response and proposal.

Yes I think your proposal is a good approach, it makes more sense to have a common root namespace

Hello @thomashassan35, I have just pushed all the above-discussed modifications to https://github.com/Orange-OpenSource/noria-ontology/tree/v0.4

Could you please check if this fits your needs, then I'll make a new NORIA-O release.

@thomashassan35
Copy link
Author

thomashassan35 commented Sep 3, 2024

@GenEars thanks for the quick response and proposal.
Yes I think your proposal is a good approach, it makes more sense to have a common root namespace

Hello @thomashassan35, I have just pushed all the above-discussed modifications to https://github.com/Orange-OpenSource/noria-ontology/tree/v0.4

Could you please check if this fits your needs, then I'll make a new NORIA-O release.

Sorry for the delayed response.
All changes are fine.
The KOS file however would still benefit the added default prefix declaration for the parsing issue, as such:

# --- NORIA ---
@base <https://w3id.org/noria/ontology/kos/> .
@prefix : <https://w3id.org/noria/ontology/kos/> .
@prefix noria: <https://w3id.org/noria/ontology/> .

# === Basic scheme ============================================================

Do you see any issue with this ?

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

No branches or pull requests

3 participants