Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Pull request Compare This branch is 1 commit ahead, 1102 commits behind yql:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
sparql.search.xml

README.md

SPARYQL

SPARQL + YQL = SPARYQL

Try these queries in the YQL Console

  1. Example 1: get all triples from a FOAF file

    
    use "http://triplr.org/sparyql/sparql.xml" as sparql;
    select * from sparql where query="PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT $s $p $o FROM <http://www.dajobe.org/foaf.rdf> WHERE { $s $p $o } LIMIT 10"
     and service="http://sparql.org/sparql"
    
  2. Example 2: get friend's nick and names from a FOAF file

    
    use "http://triplr.org/sparyql/sparql.xml" as sparql;
    select * from sparql where query="PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT $nick $name FROM <http://www.dajobe.org/foaf.rdf> WHERE { $x a foaf:Person . $x foaf:nick $nick . $x foaf:name $name }"
     and service="http://sparql.org/sparql"
    
  3. Example 3 - select just one field: value of object triple

    
    use "http://triplr.org/sparyql/sparql.xml" as sparql;
    select result.o.value from sparql where query="PREFIX foaf:  SELECT $s $p $o FROM  WHERE { $s $p $o } LIMIT 10"
     and service="http://sparql.org/sparql"
    

Something went wrong with that request. Please try again.