Thursday, 15 January 2015

database - What is the semantically correct way to insert JSON-LD into Neo4j? -


For example, here are the two linked nodes I want to insert:

   

"Something awesome company", "image": ["@ reference": "http://schema.org", "@id": "some_organization_id", "@type": "organization", "name": [" "Http://somema.org", "@id": "some_image_id", "http://somema.org", " "@type": "ImageObject", "contentUrl": "http://instagram.com/blahblah", "thumbnail:" ... "," caption: "..."}

Note that how many objects can be included in the property "image", which can be either text or point to other nodes Programming can.

Neo4j seems to differentiate between "properties" and "relationships". Is there any way in Neo4j or similar graph database where relationships and properties are the same thing, and the value of a property is just one node Can you point out?

Neo4j is an object in relationships and has its own properties

There is nothing that prevents references to another node in an asset but this is not recommended as the database keeps track of it for you.

Using Neo4j for your example, you can create other nodes with images and just create relationships between the organization node and image nodes.

If you need information about the relation of a particular node, then there are many details available through the interface again, although there are many properties returned in the JSN object that the relationships of that node Describes. / P>

  "outgoing_relationships": "http: // localhost: 7474 / db / data / node / 1 / relationship / out" "all_typed_relationships": "http: // localhost: 7474 / db / data / Node / 1 / relationship / all / {- list | & amp;; type} "" outgoing_type_related ":" http: // localhost: 7474 / db / data / node / 1 / relationships / out / {-list | "Http: // localhost: 7474 / db / data / node / 1 /" / "/" / "/" relationships "" all_relationships ":" http: // localhost: 7474 / db / data / node / 1 / Relations / all "" incoming_typed_relationships ":" http: // localhost: 7474 / db / data / node / 1 / relationship / in / {- list | and; type}  

relationships Similar properties are for JSON d OC which comes back to the beginning Describes the b node and end node which is related to the relationship.

  "start": "http: // localhost: 7474 / db / data / node / 2" "end": "Http: // localhost: 7474 / db / data / node / 22"  

No comments:

Post a Comment