Basic SPARQL Practice Example Graph Structure 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 http 1 Select LoI Where http 6 P 4 P P 2 P 3 P 5 P http 6 P something in here The Literal of Interest LoI Example Graph Structure Same 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 http 1 P 2 2 P 3 3 P 5 4 P 3 4 P http 6 http 6 P something in here Select LoI Where http 6 P The Literal of Interest LoI Example Graph Structure 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 http 1 4 P P 2 P 3 P 5 P 6 P something in here The Literal of Interest Select LoI Where http 1 P b2 b2 P b3 b4 P b3 b4 P b6 b6 P LoI Example Graph Structure Same 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 http 1 P 2 2 P 3 3 P 5 4 P 3 6 P something in here 4 P 6 The Literal of Interest Select LoI Where http 1 P b2 b2 P b3 b4 P b3 b4 P b6 b6 P LoI
View Full Document