Fork me on GitHub
#rdf
<
2020-05-12
>
EmmanuelOga02:05:41

the ideas of how to use named graphs seem almost obvious but I'm glad someone wrote about it since I've seen comments of the tenor that named graphs is something one would almost never need on real life RDF

EmmanuelOga02:05:52

it seems at least someone is using them 🙂

rickmoynihan06:05:12

As far as I know almost everyone doing anything substantial with RDF will use named graphs; it’d be hard not to.

EmmanuelOga07:05:05

> I use these rarely enough that I re-read the “Named Graphs” section of my book’s “Updating Data with SPARQL” chapter as a review before I assembled the steps below.

EmmanuelOga07:05:38

I guess I'd been "consuming" quite a bit of Bob's content lately hahah

rickmoynihan10:05:06

Yeah I should clarify; if you’re publishing, changing or creating RDF; graphs are important. Much less so for querying as the semantics should ideally just be in the data (i.e. the ?s ?p ?o part of the quads).

rickmoynihan06:05:40

We certainly use named graphs extensively

rickmoynihan06:05:56

You should however be careful with them; named graphs are a bit of an afterthought (introduced in) SPARQL 1.1. It’s a real shame for example that CONSTRUCT statements can’t construct graphs - there’s an issue discussing adding this to SPARQL 1.2 though. In particular you shouldn’t give graphs any real semantic meaning. Typically you usually only want to use them for data management; or establishing known/trusted subset(s) of information for processing.

EmmanuelOga07:05:14

I'm trying to create a lil blog generator

EmmanuelOga07:05:38

I was thinking of giving every "document" on my blog its own named graph

EmmanuelOga07:05:23

say, the backing data of "/blog/2020-05-01-title" would live on the named graph "/blog/2020-05-01-title/data"

EmmanuelOga07:05:32

(not sure about the urls yet)

rickmoynihan07:05:50

Yes that makes sense and is pretty common; as it enables you to update the resource through a simple drop and replace of the graph

đź‘Ť 4
Eric Scott14:05:53

Am I correct in the recollection that data is only expected to be consistent within a given named graph?