Slide 1Slide 2Slide 3Slide 4Slide 5Basic SPARQL Practice<http://6> …}Example Graph Structurehttp://1_:2“<something in here>”_:4_:3http://6_:5You have the URI for http://6 and need SPARQL to return the value at “The Literal of Interest”.Complete the query. All nodes beginning with _: are blank nodes All edges use the same predicate, P The Literal of InterestSelect ?LoIWhere { <http://6> P ?LoI .}PPPPPP<http://6> …}Example Graph StructureSame problem given triples:You have the URI for http://6 and need SPARQL to return the value at “The Literal of Interest”.Complete the query. All nodes beginning with _: are blank nodes All edges use the same predicate, P Select ?LoIWhere { <http://6> P ?LoI .}http://1 P _:2 ._:2 P _:3 ._:3 P _:5 ._:4 P _:3 ._:4 P http://6 .http://6 P “<something in here>” .The Literal of InterestExample Graph Structurehttp://1_:2“<something in here>”_:4_:3 _:6_:5You have the URI for http://1 and need SPARQL to return the value at “The Literal of Interest”.Complete the query. All nodes beginning with _: are blank nodes All edges use the same predicate, PThe Literal of InterestSelect ?LoIWhere { <http://1> P ?b2 . ?b2 P ?b3 . ?b4 P ?b3 . ?b4 P ?b6 . ?b6 P ?LoI .}PPPPPPExample Graph StructureSame problem given triples:You have the URI for http://1 and need SPARQL to return the value at “The Literal of Interest”.Complete the query. All nodes beginning with _: are blank nodes All edges use the same predicate, P Select ?LoIWhere {http://1 P _:2 ._:2 P _:3 ._:3 P _:5 ._:4 P _:3 ._:6 P “<something in here>” ._:4 P _:6 . <http://1> P ?b2 . ?b2 P ?b3 . ?b4 P ?b3 . ?b4 P ?b6 . ?b6 P ?LoI .}The Literal of
View Full Document