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

Maßeinheiten als Vokabular aus E58_Measurement_Unit einspielen #45

Open
nichtich opened this issue Aug 2, 2024 · 1 comment
Open

Comments

@nichtich
Copy link
Contributor

nichtich commented Aug 2, 2024

Offene Frage ist, welche URIs primär verwendet werden sollen (siehe units-of-measurement/units-of-measurement#50 (comment)).

@nichtich
Copy link
Contributor Author

nichtich commented Sep 19, 2024

Replace Measurement Units with UOM Code URIs at https://w3id.org/uom/cm.

Requires to first check all codes whether they match a valid UOM code!

DELETE {
  ?x crm:P91_has_unit ?crmUnit 
} INSERT {
  ?x crm:P91_has_unit ?unit .
  BIND(IRI(CONCAT(STR("https://w3id.org/uom/"), ENCODE_FOR_URI(?code)))) AS ?unit
} WHERE {
  ?x crm:P91_has_unit ?crmUnit .
  ?crmUnit a crm:E58_Measurement_Unit ;
    crm:P90_has_value ?code .
}

Und anschließend alle E58_Measurement_Unit löschen:

DELETE WHERE {
  ?s a crm:E58_Measurement_Unit 
  OPTIONAL { ?s ?p ?v }
}

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