shexSpec / grammar

ShEx grammar
MIT License
3 stars 1 forks source link

Missing languageTag in jsonld #5

Open hsolbrig opened 6 years ago

hsolbrig commented 6 years ago

https://www.w3.org/ns/shex.jsonld doesn't have a languageTag element, meaning that https://raw.githubusercontent.com/shexSpec/shexTest/master/schemas/1val1language.json gets emitted as

<http://a.example/S1> a shx:Shape ;
    shx:expression [ a shx:TripleConstraint ;
            shx:predicate <http://a.example/p1> ;
            shx:valueExpr [ a shx:NodeConstraint ;
                    shx:values ( [ a sht:Language ] ) ] ] .
ericprud commented 5 years ago

applied this patch:

      "LanguageStem": "shex:LanguageStem",
+     "languageTag": "shex:languageTag",
      "LanguageStemRange": "shex:LanguageStemRange",