SPARQL查询示例

1 数据库概况,探索内部结构
2 查询特定资源的属性和值
3 统计分析相关查询
4 路径查询与简易推荐系统
  1. PREFIX bf: <http://id.loc.gov/ontologies/bibframe/>
  2. PREFIX bibo: <http://purl.org/ontology/bibo/>
  3. PREFIX cidoc-crm: <http://www.cidoc-crm.org/cidoc-crm/>
  4. PREFIX cito: <http://purl.org/spar/cito/>
  5. PREFIX ctm: <https://lib.ccmusic.edu.cn/ontologies/chinese_traditional_music#>
  6. PREFIX dc: <http://purl.org/dc/elements/1.1/>
  7. PREFIX dcterms: <http://purl.org/dc/terms/>
  8. PREFIX dbo: <http://dbpedia.org/ontology/>
  9. PREFIX event: <http://purl.org/NET/c4dm/event.owl#>
  10. PREFIX fabio: <http://purl.org/spar/fabio/>
  11. PREFIX foaf: <http://xmlns.com/foaf/0.1/>
  12. PREFIX gn: <https://www.geonames.org/ontology#>
  13. PREFIX juso: <http://rdfs.co/juso/>
  14. PREFIX kanzaki: <http://www.kanzaki.com/ns/music#>
  15. PREFIX mo: <http://purl.org/ontology/mo/>
  16. PREFIX musicbrainz: <http://musicbrainz.org/ns/mmd-2.0#>
  17. PREFIX opus: <http://lsdis.cs.uga.edu/projects/semdis/opus#>
  18. PREFIX owl: <http://www.w3.org/2002/07/owl#>
  19. PREFIX places: <http://purl.org/ontology/places#>
  20. PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/>
  21. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  22. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  23. PREFIX relationship: <http://purl.org/vocab/relationship/>
  24. PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  25. PREFIX tl: <http://purl.org/NET/c4dm/timeline.owl>
  26. PREFIX xml: <http://www.w3.org/XML/1998/namespace>
  27. PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  28. PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
  29. PREFIX vivo: <http://vivoweb.org/ontology/core#>