Step 6: Modify RDF in the Local RDF Graph Database
Learn how to alter the RDF graph by adding a new property to all nodes with multiple edges.
We'll cover the following
To round things out, let’s now modify the RDF graph we just ingested.
Add a new property
Suppose we want to add an ex:count
property to all nodes with multiple edges. Now since this is RDF, an edge may connect a node with another object node or with a string value. Let's just count the object nodes.
SPARQL Update
We could do this with the following SPARQL Update query:
Get hands-on with 1200+ tech skills courses.