URLフォーマット

http:///q35_KGgenerator4BMTnetw1stStep/< param >/[offset,limit][.format]

SPARQLクエリ

prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix sio: <http://semanticscience.org/resource/>
prefix id: <http://purl.jp/bio/4/id/>
prefix dc: <http://purl.org/dc/terms/>
prefix xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>

select distinct  ?StartingPoint ?ol0  ?StartingPoint_TO_o1 ?o1 ?ol1 ?o1_TO_StartingPoint 

where{
  graph <http://nikkaji.biosciencedbc.jp/IOBC_1_2_0.ttl>{
  FILTER (?StartingPoint_TO_o1 != rdfs:subClassOf &&
          ?StartingPoint_TO_o1 != skos:broader &&
          ?StartingPoint_TO_o1 != skos:exactMatch &&
          ?StartingPoint_TO_o1 != skos:prefLabel &&
          ?StartingPoint_TO_o1 != dc:subject &&
          ?StartingPoint_TO_o1 != rdfs:seeAlso &&
          ?StartingPoint_TO_o1 != rdfs:label &&
          ?StartingPoint_TO_o1 != rdf:type &&
          ?StartingPoint_TO_o1 != dc:identifier &&
          ?StartingPoint_TO_o1 != dc:subject &&
          ?StartingPoint_TO_o1 != skos:altLabel &&
          ?StartingPoint_TO_o1 != rdfs:label &&
          ?StartingPoint_TO_o1 != skos:narrower
         )

  FILTER(?StartingPoint = <: $param :>)
         {?StartingPoint ?StartingPoint_TO_o1 ?o1.} OPTIONAL {?o1 ?o1_TO_StartingPoint ?StartingPoint .}
         {?StartingPoint skos:prefLabel ?ol0.}
         {?StartingPoint dc:subject ?sub0.}
OPTIONAL {?StartingPoint rdfs:seeAlso ?als0.}
         {?o1 skos:prefLabel ?ol1 .}
         {?o1 dc:subject ?sub1.}
OPTIONAL {?o1 rdfs:seeAlso ?als1.}

}
}

説明


一覧に戻る