Hi, don’t expect to have in rdf a representation of the json tree
> - how do I know which node is the root node in the json-ld? what you get is a (RDF) graph, and in the general case, several resources are described (cf. for instance the “@graph” in the jsonld). If you’re in the case where you have one “main resource”, described in the jsonld, and if what you want is the URI of this resource (the “@id” of the resource at “the top” of the json tree), then you may try to list resources in the RDF that are not object of any triple (but I think that other resources may also be in this case, for instance if there are “reverse properties”) > - how do I figure out what the original order of a json array is, when i'm > looking at the triples I’m afraid you can’t. JSON-LD arrays are not ordered by default (the opposite from regular JSON arrays) If the order matters,"@list” should be used in the jsonld (and you then get a rdf:list in RDF) see https://www.w3.org/TR/json-ld/#sets-and-lists fps > Le 9 janv. 2017 à 23:40, Grahame Grieve <[email protected]> > a écrit : > > hi > > I'm trying to use jena with some json-ld content. There's a couple of > things that aren't clear to me, when I'm working with the set of triples > that come from reading the json-ld > > - how do I know which node is the root node in the json-ld? > - how do I figure out what the original order of a json array is, when i'm > looking at the triples > > Grahame > > > -- > ----- > http://www.healthintersections.com.au / [email protected] > / +61 411 867 065
