Sha256: 5bbd2c3dd40bda798729488fb591360b01ef9fde1ec83c95fd27a743995210bc

Contents?: true

Size: 866 Bytes

Versions: 5

Compression:

Stored size: 866 Bytes

Contents

# This is a test SPARQL query

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX ex: <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dcterms: <http://purl.org/dc/terms/>

SELECT ?person (COUNT(?nick) AS ?nickCount) {
    ?person foaf:nick ?nick ;
      foaf:lastName "Smith" ;
      foaf:age "21"^^xsd:int ;
      ex:title 'Mr' ; # single-quoted string
      ex:height 1.80 ; # float
      ex:distanceToSun +1.4e8 ; # float with exponent
      ex:ownsACat true ;
      dcterms:description "Someone with a cat called \"cat\"."@en .
    OPTIONAL { ?person foaf:isPrimaryTopicOf ?page }
    OPTIONAL { ?person foaf:name ?name
               { ?person foaf:depiction ?img }
               UNION
               { ?person foaf:firstName ?firstN } }
    FILTER ( bound(?page) || bound(?img) || bound(?firstN) )
} GROUP BY ?person ORDER BY ?img 

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/sparql.rq
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/sparql.rq
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/sparql.rq
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/sparql.rq
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/sparql.rq