Quantcast
Channel: public-shacl Mail Archives
Viewing all articles
Browse latest Browse all 397

[data-shapes] SHACLC-C `sh:name` and `sh:description` shorthand and derive (#388)

$
0
0
jeswr has just created a new issue for https://github.com/w3c/data-shapes:

== SHACLC-C `sh:name` and `sh:description` shorthand and derive ==
I think we should add support for `sh:name` and `sh:description` such that each of the following are equivalent

SHACLC
```shaclc
shape <#ServiceShape> -> ex:Service ;
        // @name provider
        // comma-separated list of name(s) of Person(s) and/or Organization(s)
 ex:provider xsd:string  .
}
```

SHACLC
```shaclc
@deriveNames

shape <#ServiceShape> -> ex:Service ;
        // comma-separated list of name(s) of Person(s) and/or Organization(s)
 ex:provider xsd:string  .
}
```

TTL
```ttl
<> a owl:Ontology .

<#ServiceShape> a sh:NamedNode ;
   sh:name "provider" ;
   sh:description "comma-separated list of name(s) of Person(s) and/or Organization(s)" ;
   sh:path ex:provider ;
   sh:datatype xsd:string .
```

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


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

Viewing all articles
Browse latest Browse all 397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>