Step 3: Modify RDF in the Local Property Graph Database

Learn how to alter the RDF graph by adding a new property to a node.

We'll cover the following

Add a new property

Let’s just do something trivial as a simple proof of concept. Let’s add a uuid property to the node with ID http://dbpedia.org/resource/Bob_Dylan.

Since we’re dealing with RDF data, we really want to give a global name to this property. Let’s say we want to add the property http://example/uuid, or in prefix notation, ex:uuid.

One way to do this is to add a new prefix to the namespace prefix table. This n10s method returns the current list of namespaces that are registered:

Get hands-on with 1400+ tech skills courses.