Hi, interesting question. In Orient you can't avoid @rids, you should create some other property "uri" (without @).
I suggest to make Person extending V and Spouse extending E. Imagine you would like to retrieve all the uri's of object properties connecting John Lennon with another Vertex (or Thing). This is the query I would ask to Orient: SELECT distinct(uri) FROM E WHERE out.uri = ' http://dbpedia.org/resource/John_Lennon' And if you would like to retrieve all the John's spouses you can ask for: SELECT distinct(uri) FROM Spouse WHERE out.uri = 'http://dbpedia.org/resource/John_Lennon' Now the first problem is that you should map orient class names with URIs corresponding to RDF classes or RDF object properties, in your case: Person with http://dbpedia.org/ontology/Person Spouse with http://dbpedia.org/ontology/spouse What exactly do you need? Cheers, Riccardo 2015-01-09 14:24 GMT+01:00 <[email protected]>: > Hi all > > I am experimenting with json-ld in orientdb. I would like to create edges > using URIs rather than RIDs. For example, the "Person" json from the > http://json-ld.org/ homepage is as below: > > { > "@context": "http://json-ld.org/contexts/person.jsonld", > "@id": "http://dbpedia.org/resource/John_Lennon", > "name": "John Lennon", > "born": "1940-10-09", > "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" > } > > So imagine we have another document for Cynthia, I would like the "spouse" > attribute to be an edge to her document. So we have two classes, one for > Person (V) and another for Spouse (E). Throughout the document, edges are > shown as "#N:M" - is it possible to do this as my desired method? > > The two import examples in the document show the setup for the import > using objectId but make no mention of the graphing. > http://www.orientechnologies.com/docs/last/orientdb-etl.wiki/Import-from-DBPedia.html > > http://www.orientechnologies.com/docs/last/orientdb-etl.wiki/Import-from-PARSE.html > > Thanks > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
