【Application-profiles-ig】用于DSP的ShEx JSON建议

Karen Coyle 【Application-profiles-ig】用于DSP的ShEx JSON建议
  • 信息分类:(日期)(线程)(主题)(作者)

  • 谢谢Eric和Tom的这个例子。我认为我们可以确信简单概要文件也可以用各种格式和验证语言来表达。为了确认这一点,我们需要从简单的文档语言(csv?其他?)到这些模式。我们可以使用当前的数据结构和元素思想建立一个表,在其中可以将语句并排放在验证模式中。或者,我们可以不把它看成是一对一的,而更像是一个整体的算法,编写可以转换简单文档的算法。我感到不太自信的是,我们如何在一个简单的概要中表达更复杂的规则,我所说的“更复杂”指的是那些使用或不使用“逻辑”的规则。这些在dcap github上的模式文档[1]中有说明。大多数编程语言和各种模式语言都能很好地处理所有这些问题。我们的问题是,我们能找到一种方式,用一个非常简单的词汇来表达其中的多少。 Meanwhile, let's continue with the easier matter of the simple expression of profiles as essentially key/value pairs, and see how far we can get with that. May I say that the examples below would be most helpful if they could include the simple profile view as the starting point, not the ShExC or J view, which would be transformations of the profile, likely output from some code that goes against the profile. That would help illustrate where this fits in to the work that we are doing. Thanks, kc On 8/30/19 3:17 AM, Eric Prud'hommeaux wrote: >汤姆和我快速地设计了一个ShExJ的子集,以满足明显(简单)的需求>DSP的要求。让我们称之为ShExJ-Lite。JSON-LD是有效的:>“@context”:“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>>>< #书> {>dc:标题xsd: string;>dc:创造者@ < #人> +;>>>< #人> {>foaf: name xsd: string +;>foaf:主页IRI ?>>]]>>(见下面拟议的ShExJ-Lite等效。)>>以下是ShExJ-Lite语法:>>模式{开始:shapeExpr ?形状:[shapeExpr +] ?}>shapeExpr = nodeconconstraint | Shape;>shapeExprLabel = IRIREF | BNODE;>nodeconconstraint {id:shapeExprLabel nodeKind:("iri" | "bnode" | "nonliteral" | . " nodeconconstraint {id:shapeExprLabel " nodeKind:("iri" | "bnode" | "nonliteral" | .>“文字”)?数据类型:IRIREF ?numericFacet *值:[valueSetValue] ?}>numericFacet = (mininclusive | minexclusive | maxinclusive | maxexclusive): numericLiteral>numericLiteral = INTEGER | DECIMAL | DOUBLE;>valueSetValue = objectValue | IriStem;>objectValue = IRIREF | ObjectLiteral;>ObjectLiteral {value:STRING language:STRING?类型:字符串?}>IriStem {stem:IRIREF}>Shape {id:shapeExprLabel expression:tripleExpr}>tripleExpr = EachOf | tripleeconstraint;>{复合表达式:[tripleExpr}>TripleConstraint {predicate:IRIREF valueExpr:shapeExpr?分钟:整数?马克斯:>整数}>>这是上面简单的书模式的ShExJ表示:>>>“类型”:“模式”,>“@context”:“http://www.w3.org/ns/shex.jsonld",>“形状”:(>>“类型”:“形状”,>“id”:“http://a.example/schema#book",>"表达":{>“类型”:“大家”,>“表达式”:(>>“类型”:“TripleConstraint”,>“谓语”:“http://purl.org/dc/terms/title",>" valueExpr ": {>“类型”:“NodeConstraint”,>“数据类型”:“http://www.w3.org/2001/XMLSchema#string>>},>>“类型”:“TripleConstraint”,>“谓语”:“http://purl.org/dc/terms/creator",>“valueExpr”:“http://a.example/schema#person",>“最小值”:1、>“马克斯”:1>>>>},>>“类型”:“形状”,>“id”:“http://a.example/schema#person",>"表达":{>“类型”:“大家”,>“表达式”:(>>“类型”:“TripleConstraint”,>“谓语”:“http://xmlns.com/foaf/0.1/name",>" valueExpr ": {>“类型”:“NodeConstraint”,>“数据类型”:“http://www.w3.org/2001/XMLSchema#string>},>“最小值”:1、>“马克斯”:1>},>>“类型”:“TripleConstraint”,>“谓语”:“http://xmlns.com/foaf/0.1/homepage",>" valueExpr ": {>“类型”:“NodeConstraint”,>:“nodeKind iri”>},>“最小值”:0,>“马克斯”:1>>>>>>>>-->-ericP>——Karen Coylekcoyle kcoyle.nethttp://kcoyle.netskype: kcoylenet


    关于Application-profiles-ig邮件列表的更多信息