[application-profiles-ig] DSP的Shex JSON建议

托马斯·贝克 [application-profiles-ig] DSP的Shex JSON建议
  • 下一个消息(通过线程):[application-profiles-ig] DSP的Shex JSON建议
  • 消息由:[ 日期 ][ 线 ][ 学科 ][ 作者 ]

  • 亲爱的大家,在埃里克(Eric)发布后,我们对模型进行了进一步的简化 - 请参阅https://dcmi.github.io/dcap/shex_lite/micro-spec.html在周一(除其他事项外)...汤姆在2019年8月30日星期五,12:17:50 pm +0200,Eric Prudhommeaux写道:>我和汤姆(Tom)和我制定了一个快速的Shexj,以满足明显的明显(简单)>DSP要求。我们称之为shexj-lite。这是有效的JSON-LD:>“@语境”: ”http://www.w3.org/ns/shex.jsonld>>例如,该子集捕获了此Shexc:>[[[>前缀DC:<http://purl.org/dc/terms/>>前缀FOAF:<http://xmlns.com/foaf/0.1/>>前缀XSD:<http://www.w3.org/2001/xmlschema#>>基础<http://a.example/schema>>><#book> {>DC:标题XSD:字符串;>DC:Creator @<#Person>+;>}>><#person> {>FOAF:名称XSD:String+;>FOAF:主页iri?>}>]]]]>>(有关拟议的SHEXJ-LITE等效物,请参见下文。)>>这是shexj-lite语法:>>模式{start:shapeexpr?形状:[shapeexpr+]?}>shapeexpr = nodeConstraint |形状 ;>shapeexprlabel = iriref |bnode;>nodeConstraint {id:shapeexprlabel nodekind :(“ iri” |“ bnode” |“ nonliteral” |>“文字”)?数据类型:Iriref?numericFacet*值:[valuesEtValue]?}>numericFacet =(Minclusive | minexclusive | maxinclusive | maxexclusive):numericLiteral>numericLiteral =整数|十进制|双倍的 ;>valuesetValue = objectValue |虹膜;>objectValue = iriref |objectliteral;>ObjectLiteral {值:字符串语言:字符串?类型:字符串?}>iristem {stem:iRiref}>shape {id:shapeexprlabel表达式:tripleexpr}>tripleexpr = everyof |tripleconstraint;>每个{表达式:[tripleexpr}>tripleconstraint {predicate:iriref valueExpr:shapeexpr?最低:整数?最大限度:>整数}>>这是上面简单书架的SHEXJ表示:>>{>“ type”:“ schema”,>“@语境”: ”http://www.w3.org/ns/shex.jsonld”,>“形状”:[>{>“类型”:“形状”,>“ID”: ”http://a.example/schema#book”,>“表达”: {>“ type”:“每个”,>“表达”:[>{>“ type”:“ tripleconstraint”,>“谓词”:”http://purl.org/dc/terms/title”,>“ valueExpr”:{>“ type”:“ nodeConstraint”,>“数据类型”: ”http://www.w3.org/2001/xmlschema#string>}>},,>{>“ type”:“ tripleconstraint”,>“谓词”:”http://purl.org/dc/terms/creator”,>“ valueExpr”:”http://a.example/schema#person”,>“ min”:1,>“最大”:-1>}>]>}>},,>{>“类型”:“形状”,>“ID”: ”http://a.example/schema#person”,>“表达”: {>“ type”:“每个”,>“表达”:[>{>“ type”:“ tripleconstraint”,>“谓词”:”http://xmlns.com/foaf/0.1/name”,>“ valueExpr”:{>“ type”:“ nodeConstraint”,>“数据类型”: ”http://www.w3.org/2001/xmlschema#string>},,>“ min”:1,>“最大”:-1>},,>{>“ type”:“ tripleconstraint”,>“谓词”:”http://xmlns.com/foaf/0.1/homepage”,>“ valueExpr”:{>“ type”:“ nodeConstraint”,>“ nodekind”:“ iri”>},,>“ min”:0,>“ max”:1>}>]>}>}>]>}>>->-ericp- 汤姆·贝克<汤姆(Tom)tombaker.org>


    有关应用程序邮寄邮件列表的更多信息