請選擇
一般查詢
SPARQL查詢
資料集下載
以下提供查詢範例,可點選參考
範例1. 有哪些稚魚的標本 PREFIX dwc_terms: <http://rs.tdwg.org/dwc/terms/>\nSELECT ?s dwc_terms:scientificName ?scientificName\nFROM <http://data.ascdc.tw/uc/bio/>\nWHERE {\n?s dwc_terms:lifeStage <http://data.ascdc.tw/terms/bio/Juvenile>;\n<http://purl.org/dc/terms/type> <http://dbpedia.org/resource/Specimen>.\n?s dwc_terms:scientificName ?scientificName.\n} 範例2. 體長超過1000 mm的魚類標本 PREFIX dwc_terms: <http://rs.tdwg.org/dwc/terms/>\nPREFIX ascdc-props_bio: <http://data.ascdc.tw/property/bio/>\nSELECT ?s dwc_terms:scientificName ?scientificName\nFROM <http://data.ascdc.tw/uc/bio/>\nWHERE {\n?s ascdc-props_bio:SL|ascdc-props_bio:minSL ?minSL;\n<http://purl.org/dc/terms/type> <http://dbpedia.org/resource/Specimen>.\n?s dwc_terms:scientificName ?scientificName.\nFILTER ( ?minSL > 1000 ).\n} 範例3. 科名是”鯧科”的所有資料 PREFIX dwc_terms: <http://rs.tdwg.org/dwc/terms/>\nPREFIX txn: <http://lod.taxonconcept.org/ontology/txn.owl#>\nSELECT ?s dwc_terms:scientificName ?scientificName\nFROM <http://data.ascdc.tw/uc/bio/>\nFROM <http://data.ascdc.tw/taicol/>\nWHERE {\n?s dwc_terms:scientificName ?concept.\n?concept txn:inFamily <http://data.ascdc.tw/taicol/family/Animalia_Stromateidae>.\n?s dwc_terms:scientificName ?scientificName.\n} 範例4. 種名是formosana PREFIX dwc_terms: <http://rs.tdwg.org/dwc/terms/>\nPREFIX txn: <http://lod.taxonconcept.org/ontology/txn.owl#>\nSELECT ?s dwc_terms:scientificName ?scientificName\nFROM <http://data.ascdc.tw/uc/bio/>\nFROM <http://data.ascdc.tw/taicol/>\nWHERE {\n?s dwc_terms:scientificName ?concept.\n?concept (txn:synonymName|txn:acceptedName)/txn:specificEpithet 'formosana'.\n?s dwc_terms:scientificName ?scientificName.\n} 範例5. 中文名有海馬的藏品 PREFIX dwc_terms: <http://rs.tdwg.org/dwc/terms/>\nSELECT ?s dwc_terms:vernacularName ?vernacularName\nFROM <http://data.ascdc.tw/uc/bio/>\nWHERE {\n?s dwc_terms:vernacularName ?vernacularName.\nFILTER langMatches(LANG(?vernacularName), 'zh').\nFILTER contains(STR(?vernacularName), '海馬').\n} 範例6. 採集方式是底拖網 PREFIX dwc_terms: <http://rs.tdwg.org/dwc/terms/>\nSELECT ?s dwc_terms:scientificName ?scientificName\nFROM <http://data.ascdc.tw/uc/bio/>\nWHERE {\n?s dwc_terms:samplingProtocol '底拖網'@zh.\n?s dwc_terms:scientificName ?scientificName.\n}
範例1. 布農族與泰雅族中具有紅色的服飾類的藏品 PREFIX schema: <http://schema.org/>\nPREFIX ascdc-props_anth: <http://data.ascdc.tw/property/anth/>\nPREFIX AAT: <http://vocab.getty.edu/ontology#>\nSELECT ?s rdfs:label ?title\nFROM <http://data.ascdc.tw/uc/anth/ntm/>\nWHERE {\n ?s ascdc-props_anth:hasRelatedTribe ?o.\n?s schema:color ?o2.\n?s AAT:aat2218_used-function_as ?o3.\n?s rdfs:label ?title.\nFILTER (Contains(STR(?o), 'Bunun') || Contains(STR(?o), '布農') || Contains(STR(?o), 'Atayal') || Contains(STR(?o), '泰雅') ) .\n FILTER (Contains(STR(?o2), '紅色') || Contains(STR(?o2), '300126225')) .\nFILTER (Contains(STR(?o3), '300266639')) .\nFILTER (langMatches(Lang(?title), 'zh')) .} 範例2. 所有有條紋裝飾的物件,材質為木頭的 PREFIX schema: <http://schema.org/>\nPREFIX ascdc: <http://data.ascdc.tw/property/>\nSELECT ?s rdfs:label ?title\nFROM <http://data.ascdc.tw/uc/anth/ntm/>\nWHERE {\n?s ascdc:hasAddedDecoration ?o.\n?s schema:material ?o2.\n?s rdfs:label ?title.\nFILTER (Contains(STR(?o), '條紋')) .\nFILTER (Contains(STR(?o2), '木頭') || Contains(STR(?o2), '300011914')) .\nFILTER (langMatches(Lang(?title), 'zh')) .} 範例3. 長度超過800mm 材質是玻璃的物件 PREFIX schema: <http://schema.org/>\nPREFIX ascdc: <http://data.ascdc.tw/property/>\nSELECT ?s rdfs:label ?title\nFROM <http://data.ascdc.tw/uc/anth/ntm/>\nWHERE {\n?s schema:material ?o.\n?s ascdc:length ?length.\n?s rdfs:label ?title.\nFILTER (Contains(STR(?o), '玻璃') || Contains(STR(?o), '300010797')) .\nFILTER (?length >= 800).\nFILTER (langMatches(Lang(?title), 'zh')) .} 範例4. 列出所有藏品的主題 PREFIX dcterms: <http://purl.org/dc/terms/>\nselect ?title (COUNT(?title) AS ?count)\nFROM <http://data.ascdc.tw/uc/anth/ntm/>\nFROM <http://vocab.getty.edu/aat/>\nWHERE {\n{ ?s dcterms:subject ?title\nFILTER langMatches(Lang(?title), 'zh')}} 範例5. 所有在台東縣採集到藏品 PREFIX sam: <http://def.seegrid.csiro.au/isotc211/iso19156/2011/sampling#>\nSELECT ?s rdfs:label ?title\nFROM <http://data.ascdc.tw/uc/anth/ntm/>\nFROM <http://vocab.getty.edu/aat/>\nWHERE {\n?s sam:sampling_location ?o.\n?s rdfs:label ?title.\nFILTER (Contains(STR(?o), '台東') || Contains(STR(?o), '臺東')) .\nFILTER (langMatches(Lang(?title), 'zh')) .}