Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crssnky/4dee8a0ccba81b9075a21e5868b6393f to your computer and use it in GitHub Desktop.
Save crssnky/4dee8a0ccba81b9075a21e5868b6393f to your computer and use it in GitHub Desktop.
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
PREFIX imasrdf: <https://sparql.crssnky.xyz/imasrdf/RDFs/detail/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX math: <http://www.w3.org/2005/xpath-functions/math#>
PREFIX xsd: <https://www.w3.org/TR/xmlschema11-2/#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT (sample(?n)as ?公演名) (sample(?sD)as ?公演日) (group_concat(?a)as ?出演者)
WHERE {
?s rdf:type imas:Live;
schema:startDate ?sD;
schema:name ?n;
schema:actor ?a
filter(?sD>"2019-05-13"^^<http://www.w3.org/2001/XMLSchema#date>)
}group by ?s order by ?sD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment