Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

SPARQL Query Example 1 in web ontology

Resource description freamework(RDF):

learning sparql

SPARQL Query:

PREFIX ab: <https://www.t4tutorials.com/personal#>
SELECT ?name
WHERE
{
?person ab:firstName “barak” .
?person ab:lastName “obama” .
?p
  • ?name is a variable any name can be in this variable
  • ?person is the subject and
  • firstName is the predicate
  • lastName is the predicate
  • barak is the object
  • obama is the object

Output:

name
barak obama

 

 

 

 

Fazal Rehman Shamil Click Here to Know More
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325
Dear Professors and Resarchers!You are welome to Cite these tutorials in your research or slides etc. Please don't forget to mention the reference of website. Copy Paste of text is strcitly forbidden. Images can be reuse because images are protected with watermark.

Leave a Reply

Your email address will not be published. Required fields are marked *