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

represent "deprecated" as owl:deprecated #24

Closed
2 tasks done
VladimirAlexiev opened this issue Jul 24, 2024 · 5 comments
Closed
2 tasks done

represent "deprecated" as owl:deprecated #24

VladimirAlexiev opened this issue Jul 24, 2024 · 5 comments
Assignees
Labels
ontology Pertains to ontology representation

Comments

@VladimirAlexiev
Copy link
Collaborator

VladimirAlexiev commented Jul 24, 2024

Various terms have a stereotype "deprecated", eg

dcterms:creator  rdf:type  rdf:Property ;
        rdfs:comment       "... This property is deprecated. Use dcterms:publisher.]." ;
        cims:stereotype    "deprecated" , "dcterms" ;
  • Represent this in a standard way
dcterms:creator
  owl:deprecated true
  • Then it would also be nice to delete this value from cims:stereotype, so it has fewer free-text values.

Here's a count per ontology:

grep -c '"deprecated"' *.ttl|grep -v ':0'
EquipmentReliability-AP-Voc-RDFS2020.ttl:1
Header-AP-Voc-RDFS2020.ttl:9
ObjectRegistry-AP-Voc-RDFS2020.ttl:2
@Sveino Sveino transferred this issue from Sveino/CGMES-NC Sep 12, 2024
@Sveino
Copy link
Owner

Sveino commented Sep 12, 2024

I like this. Originally it should have the same meaning. However, is this the relevant link to the definition: https://www.w3.org/TR/owl-ref/#Deprecation
This is something we missed in the specification.

@VladimirAlexiev
Copy link
Collaborator Author

The up-to-date spec is OWL2: https://www.w3.org/TR/2012/REC-owl2-syntax-20121211/#a_deprecated

This is useful to find OWL2 stuff: https://www.w3.org/TR/owl2-quick-reference/

  • must also count in CGMES ontologies (above is NC)

@VladimirAlexiev VladimirAlexiev added the ontology Pertains to ontology representation label Sep 13, 2024
@VladimirAlexiev
Copy link
Collaborator Author

Updated count:

grep -rc '"deprecated"' |grep -v ':0'
CGMES/ttl/61970-600-2_Equipment-AP-Voc-RDFS2020_v3-0-0.ttl:7
CGMES/ttl/61970-600-2_EquipmentBoundary-AP-Voc-RDFS2020_v3-0-0.ttl:2
CGMES/ttl/61970-600-2_Topology-AP-Voc-RDFS2020_v3-0-0.ttl:2
CGMES-NC/ttl/EquipmentReliability-AP-Voc-RDFS2020.ttl:1
CGMES-NC/ttl/ObjectRegistry-AP-Voc-RDFS2020.ttl:2

So 13 occurrences.

A query shows this is used on 7 props:

PREFIX cims: <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#>
select * {
  ?p cims:stereotype "deprecated"
}
p
eu: IdentifiedObject.energyIdentCodeEic
eu: IdentifiedObject.shortName
cim: SVCControlMode
cim: PhaseTapChangerLinear.xMin
cim: PhaseTapChangerNonLinear.xMin
cim: StaticVarCompensator.sVCControlMode
cim: StaticVarCompensator.voltageSetPoint

Done in fix15-deprecated-24.ru.
Assigning to @Sveino @griddigit-ci to answer why EIC is deprecated?

@Sveino
Copy link
Owner

Sveino commented Sep 23, 2024

We would like to remove eu namespace. We are creating an ObjectRegisry profile that can handle multiple names and identification on the same object. My proposal (but not yet approved) is:
image

eu: IdentifiedObject.energyIdentCodeEic -> cim:Name.name and cim:Name.kind = eIC

@VladimirAlexiev
Copy link
Collaborator Author

  • Until this proposal is accepted, how can one record EICs? I think you should deprecate it AFTER the proposal is acceped
  • For all deprecated props, please describe the reason for deprecation: in skos:scopeNote, or simply in rdfs:comment

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

No branches or pull requests

3 participants