[shexTest] trait attribute is missing from JSONLD representation

hsolbrig has just created a new issue for https://github.com/shexSpec/shexTest:

== trait attribute is missing from JSONLD representation ==
The RDF representation:

```text
<#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:
* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#action
* http://www.w3.org/1999/02/22-rdf-syntax-ns#type
* http://www.w3.org/2000/01/rdf-schema#comment
* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#status
* http://www.w3.org/ns/shacl/test-suite#trait
* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#name

The jsonld equivalent:
```json
    {
          "@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`:

* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#status
* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#action
* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#extensionResults
* http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#name
* http://www.w3.org/2000/01/rdf-schema#comment
* http://www.w3.org/1999/02/22-rdf-syntax-ns#type

Please view or discuss this issue at https://github.com/shexSpec/shexTest/issues/27 using your GitHub account

Received on Thursday, 4 January 2018 17:19:24 UTC