I was playing with fuseki and JSON-LD and noticed that fuseki removes prefixes from the attributes in the JSON-LD context. Example of JSON-LD context after been loaded from fuseki:
{
"@context": {
"hasPriceSpecification": {
"@id": "http://purl.org/goodrelations/v1#hasPriceSpecification",
"@type": "@id"
},
"acceptedPaymentMethods": {
"@id": "http://purl.org/goodrelations/v1#acceptedPaymentMethods",
"@type": "@id"
},
"includes": {
"@id": "http://purl.org/goodrelations/v1#includes",
"@type": "@id"
},
"page": {
"@id": "http://xmlns.com/foaf/0.1/page",
"@type": "@id"
},
"foaf": "http://xmlns.com/foaf/0.1/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"pto": "http://www.productontology.org/id/",
"gr": "http://purl.org/goodrelations/v1#"
}
}
Is it possible to return prefixed context and JSON-LD from fuseki?
Optionally returned JSON-LD can be formatted back to prefixied form with javascript by writing new context with the prefixes eg. gr:hasPriceSpecification. Is somehow possible to create prefixed context from this one using JSON-LD javascript library?