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/e16282fa568ddf4686c47b1c94871efe to your computer and use it in GitHub Desktop.
Save crssnky/e16282fa568ddf4686c47b1c94871efe 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 distinct ?predicate ?object
where{
?class_iri rdf:type ?class.
?class rdfs:label ?class_label.
filter(contains(?class_label,"アイドル"))
?idol_iri rdf:type imas:Idol;
schema:name ?idol_name.
filter(contains(?idol_name,"千早"))
?idol_iri ?predicate ?object
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment