Reputation: 11
I have made an ontology for Email. I want to make a query to test but believe me I forgot to how to write a simple one!! can anyone help me? considering these : Email has subject,sender,receiver,content I want to write sth like this : Select * from content where sender=Sanza,
how can I write it in SPARQL? may be : SELECT * ?Content WHERE ?Sender: Sanaz can anyone re-write it? Thank you very much
Upvotes: 1
Views: 122
Reputation: 3136
It should look to something like that:
SELECT ?content
WHERE {
?email <http://www.example.org/sender> "Sanza" .
?email <http://www.example.org/content> ?content .
}
You can find more examples there: http://jena.apache.org/tutorials/sparql_basic_patterns.html
Upvotes: 3