io-informatics / jackson-jsonld

JSON-LD Module for Jackson
MIT License
24 stars 13 forks source link

GraphBuilder has multicontext #5

Open charbull opened 8 years ago

charbull commented 8 years ago

Hi,

The graphBuilder Class has multicontext part for every Class in the iterable.

{ "@context": { "hasLocation_Room": "loc:hasLocation_Room", "hasLocation_Floor": "loc:hasLocation_Floor", "hasName": "loc:hasName", "loc": { "@id": "http://www.se.com/global/CoreSE_Location#", "@type": "@id" } }, "@graph": [{ "@context": { "hasLocation_Room": "loc:hasLocation_Room", "hasLocation_Floor": "loc:hasLocation_Floor", "hasName": "loc:hasName", "loc": { "@id": "http://www.se.com/global/CoreSE_Location#", "@type": "@id" } }, "@type": "loc:Building", "hasLocation": null, "hasName": "BuildingB1", "hasLocation_Room": null, "hasLocation_Floor": "L1", "@id": "B1", "loc": "" }, { "@context": { "hasLocation_Room": "loc:hasLocation_Room", "hasName": "loc:hasName" }, "@type": "loc:Floor", "hasLocation": null, "hasName": "Floor 1", "hasLocation_Room": null, "@id": "L1" }] }