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

Use both name and UUID as resolvable reference #49

Open
Sveino opened this issue Jul 3, 2023 · 2 comments
Open

Use both name and UUID as resolvable reference #49

Sveino opened this issue Jul 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Sveino
Copy link
Collaborator

Sveino commented Jul 3, 2023

The reference data for SynchronousMachine.operatingMode is in Turle:

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix nc: <http://entsoe.eu/ns/nc#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<http://energy.referencedata.eu/PropertyReference/SynchronousMachine.operatingMode> a <http://iec.ch/TC57/CIM100#PropertyReference>,
        skos:Concept ;
    nc:PropertyReference.mRID "1d3bb064-b765-4d06-992a-70f1ce3d0bd4" ;
    nc:PropertyReference.name "SynchronousMachine.operatingMode" ;
    dcterms:identifier "urn:uuid:1d3bb064-b765-4d06-992a-70f1ce3d0bd4" ;
    skos:definition "Current mode of operation." ;
    skos:inScheme "http://energy.referencedata.eu/PropertyReference" ;
    skos:prefLabel "SynchronousMachine.operatingMode" ;
    skos:topConceptOf "http://energy.referencedata.eu/PropertyReference" .

Only http://energy.referencedata.eu/PropertyReference/SynchronousMachine.operatingMode is resolvable should http://energy.referencedata.eu/PropertyReference/[SynchronousMachine.operatingMode](urn:uuid:1d3bb064-b765-4d06-992a-70f1ce3d0bd4) also be resolvable.

@Haigutus
Copy link
Owner

Haigutus commented Jul 3, 2023

We need to be careful to not mix up intended use or URL and URN

https://www.rfc-editor.org/rfc/rfc3986#section-1.1.2
https://stackoverflow.com/questions/4913343/what-is-the-difference-between-uri-url-and-urn

Proposal:
In future develop a webservice where input of URN (example: urn:uuid:<resource_uuid>) will direct to the resource URL

@Haigutus Haigutus added the enhancement New feature or request label Jul 3, 2023
@Sveino
Copy link
Collaborator Author

Sveino commented Jul 3, 2023

I am generally OK with this approach. This could in general be a ObjectRegistry Service that can include reference data and CGM.

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

2 participants