sparql-examples

A set of SPARQL examples that are used in different TGX resources

View the Project on GitHub BiGCAT-UM/sparql-examples

004

rq turtle/ttl

Academic journals with Mastodon.

Use at

PREFIX wd: <http://wikidata.org/entity/>
PREFIX wdt: <http://wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>

SELECT DISTINCT ?item ?itemLabel ?mastoadress
WHERE 
{
  ?item wdt:P4033 ?mastoadress ; wdt:P31/wdt:P279* wd:Q737498 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}

graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?item"):::projected 
  v2("?mastoadress"):::projected 
  a1((" "))
  c6(["bd:serviceParam"]):::iri 
  c4(["wd:Q737498"]):::iri 
  c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal 
  v1 --"wdt:P4033"-->  v2
  v1 --"wdt:P31"-->  a1
  a1 --"wdt:P279"-->  c4
  subgraph s1["http://wikiba.se/ontology#label"]
    style s1 stroke-width:4px;
    c6 --"wikibase:language"-->  c8
  end