BioHackathon-RDF

提供:TogoWiki

(版間での差分)
移動: 案内, 検索
(SPARQL queries)
(SPARQL queries)
72行: 72行:
-
* ボトル一覧 [http://sparql-support.dbcls.jp/?query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0APREFIX+bho%3A+%3Chttp%3A%2F%2Fpurl.jp%2Fbio%2F10%2Fbh%2Fontology%23%3E%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0A%0ASELECT+%3Fbottle+%3Fcountry+%3Fcategory+%3Fdescription+%3Flabel+%3Fpercentage+%3Fpicture%0AFROM+%3Chttp%3A%2F%2Fbiohackathon.org%2F%3E%0AWHERE+%7B%0A++++%3Fbottle+a+bho%3ABottle+%3B%0A++++bho%3Abeverage_country+%3Fcountry+%3B%0A++++bho%3Abeverage_category+%3Fcategory+%3B%0A++++skos%3Adescription+%3Fdescription+%3B%0A++++rdfs%3Alabel+%3Flabel+%3B%0A++++foaf%3Adepiction+%3Fpicture+.%0A++++OPTIONAL+%7B%0A%09%3Fbottle+bho%3Apercentage+%3Fpercentage+.%0A++++%7D%0A%7D%0AORDER+BY+%3Fcountry+%3Fcategory+%3Flabel%0A%0A&endpoint=http%3A%2F%2Fep.dbcls.jp%2Fsparql71tmp exec]
+
* ボトル一覧 [http://sparql-support.dbcls.jp/?query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0APREFIX+bho%3A+%3Chttp%3A%2F%2Fpurl.jp%2Fbio%2F10%2Fbh%2Fontology%23%3E%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0A%0ASELECT+%3Fcountry+%3Fcategory+%3Fdescription+%3Flabel+%3Fpercentage+%3Fpicture%0AFROM+%3Chttp%3A%2F%2Fbiohackathon.org%2F%3E%0AWHERE+%7B%0A++++%3Fbottle+a+bho%3ABottle+%3B%0A++++++++bho%3Abeverage_country+%3Fcountry+%3B%0A%09bho%3Abeverage_category+%3Fcategory+%3B%0A%09skos%3Adescription+%3Fdescription+%3B%0A%09rdfs%3Alabel+%3Flabel+%3B%0A%09foaf%3Adepiction+%3Fpicture+.%0A++++OPTIONAL+%7B%0A%09%3Fbottle+bho%3Apercentage+%3Fpercentage+.%0A++++%7D%0A%7D%0AORDER+BY+%3Fcountry+%3Fcategory+%3Flabel%0A%0A&endpoint=http%3A%2F%2Fep.dbcls.jp%2Fsparql71tmp exec]

2017年9月3日 (日) 20:12時点における版

test endpoint

グラフ構造

SPARQL queries

  • 2011年開催のBioHackathonの情報 exec
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix bh: <http://purl.jp/bio/10/bh/>
prefix bho: <http://purl.jp/bio/10/bh/ontology#>
prefix event: <http://purl.org/NET/c4dm/event.owl#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix vcard: <http://www.w3.org/2006/vcard/ns#>
prefix time: <http://www.w3.org/2006/time#>
prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?label (COUNT(?agent) AS ?number_of_participants) ?place_label ?begin_date ?end_date ?address_string ?lat ?lon
FROM <http://biohackathon.org/>
WHERE {
  ?bh a event:Event .
  ?bh event:agent ?agent .
  ?bh rdfs:label ?label .
  ?bh time:year 2011 .
  ?bh event:time ?interval .
  ?interval time:hasBeginning ?begin .
  ?begin time:inXSDDate ?begin_date .
  ?interval time:hasEnd ?end .
  ?end time:inXSDDate ?end_date .
  ?bh event:place ?place .
  ?place rdfs:label ?place_label .
  ?place vcard:address ?address .
  ?address rdfs:label ?address_string .
  ?place vcard:hasGeo ?geo .
  ?geo vcard:latitude ?lat .
  ?geo vcard:longitude ?lon .
} 


  • 参加者一覧(参加回数順)exec
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix bh: <http://purl.jp/bio/10/bh/>
prefix bho: <http://purl.jp/bio/10/bh/ontology#>
prefix event: <http://purl.org/NET/c4dm/event.owl#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix vcard: <http://www.w3.org/2006/vcard/ns#>
prefix time: <http://www.w3.org/2006/time#>
prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?person ?name (COUNT(?bh) AS ?bh) 
FROM <http://biohackathon.org/>
WHERE {
  ?bh event:agent ?participant .
  ?participant rdfs:seeAlso ?person .
  ?person foaf:name ?name .
} ORDER BY DESC (?bh)


  • 2017年の参加国一覧 exec


  • BioHackathon一覧 exec

参加者数、そのうち海外からの参加者数、計何カ国かなど


  • ボトル一覧 exec
個人用ツール