> > Short answer: ...
>
> > a = rdfSubject(uri)
>
> So one uses the same command to find an rdfSubject object as one does
> to create one? I'm fairly new to Python; would that be a standard
> Pythonic approach?
I thinks so but I would almost call the behavior more rdf-ish than
pythonic.
A URIRef is the name of something. RDF open-world assumptions say
that you have named the subject but triples relating to it may or may
not exist in your triplestore, they could be in some other
triplestore (Bibliography's are great candidates for being published
at SPARQL entpoints IMHO).
a = rdfSubject(MYNS.item47)
does not add any statements to the triplestore but it they are there
a._ppo()
will then reveal them interactively.
b = Document(MYNS.item47)
will add at least one triple to the triplestore if none exists since
you have asserted something about the URI. That triple is:
(MYNS.item47, RDF.type, BIBO.Document)
In rdf, the uriref is the primary key to the ONLY table that exists
(triples). If you have the URI you have your subject.
It is not "bound" to your code or your database as a key in a program
or a relational database might be.
One of the nice advantages of RDF in general.
--
Phil