Retrieving RDF Data
- Remember the Python idiom:
# do something with (p,o) pairs
for (p,o) in triples.predicate_objects(subject) :
do_something(p,o)
- The
(subject,p,o)
is a pattern that we are looking for- with
p
ando
as “unknowns”
- with
113 (155)
# do something with (p,o) pairs
for (p,o) in triples.predicate_objects(subject) :
do_something(p,o)
(subject,p,o)
is a pattern that we are looking for
p
and o
as “unknowns”