Add a Vocabulary for DC Elements
Explore how to add a Dublin Core vocabulary to your RDF graphs using RDF.ex. Learn to manage URI strings effectively, define vocabularies with Elixir modules, and work with schema files to simplify RDF semantic modeling.
We'll cover the following...
Build an RDF Graph
We’ll switch gears here and see how we can build up an RDF graph using RDF.ex rather than writing out the RDF explicitly. We’ll aim to generate the book graph using the semantic RDF form we already discussed.
URI strings
One of the challenges to working with RDF is managing URI strings. We need to deal with node names ourselves for instance data because these generally use an application-specific naming. But for edges and node labels, we don’t want to be dealing with URI strings every time we add a property or a class name.
We can make use of one particular aspect of ...