[data-shapes] SHACL Inference Rules - Use Case: consistent language tag handling for SKOS labels (#298)

robert-david has just created a new issue for https://github.com/w3c/data-shapes:

== SHACL Inference Rules - Use Case: consistent language tag handling for SKOS labels ==
SKOS concepts use labels as a textual representation. These labels can be used for concept annotations in documents, where they are textually matched to terms in the text. In this use case, it is important to have a clear definition of languages and every label should define the language as a tag so that it is only matched in documents of the same language. If a label has no tag, it can be added (inferred) based on a default language, which can be defined for a specific use case.

Data graph:
@prefix ex: <http://example.com/ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

ex:concept1 a skos:Concept ;
    skos:prefLabel "animals" ;
    skos:altLabel "fauna"@en .
Shapes graph:
@prefix ex: <http://example.com/ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

ex:ConceptShape a sh:NodeShape ;
    sh:targetClass skos:Concept ;
    sh:property [
        sh:path skos:prefLabel ;
        sh:languageIn ( "en" ) ;
    ] .

Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/298 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 4 March 2025 19:17:00 UTC