shexSpec / shexTest

ShEx test suite
https://shexspec.github.io/shexTest/
Other
3 stars 4 forks source link

trait attribute is missing from JSONLD representation #27

Open hsolbrig opened 6 years ago

hsolbrig commented 6 years ago

The RDF representation:

<#1dotSemi_pass-noOthers> a sht:ValidationTest ;
    mf:name "1dotSemi_pass-noOthers" ;
    sht:trait sht:TriplePattern ;
    rdfs:comment "PREFIX : <http://a.example/> <S1> { :p1 ., } on { <s1> <p1> <o1> }" ;
    mf:status mf:proposed ;
    mf:action [
      sht:schema <../schemas/1dotSemi.shex> ;
      sht:shape <http://a.example/S1> ;
      sht:data <Is1_Ip1_Io1.ttl> ;
      sht:focus <http://a.example/s1>
    ]
    .

Has the following predicates:

The jsonld equivalent:

    {
          "@id": "#1dotSemi_pass-noOthers",
          "@type": "sht:ValidationTest",
          "action": {
            "schema": "../schemas/1dotSemi.shex",
            "shape": "http://a.example/S1",
            "data": "Is1_Ip1_Io1.ttl",
            "focus": "http://a.example/s1"
          },
          "extensionResults": [],
          "name": "1dotSemi_pass-noOthers",
          "trait": [
            "TriplePattern"
          ],
          "comment": "PREFIX : <http://a.example/> <S1> { :p1 ., } on { <s1> <p1> <o1> }",
          "status": "mf:proposed"
        },

Adds extensionResults and removes traits:

hsolbrig commented 4 years ago

@ericprud - ok if I just fix this?