敦煌壁画主题词表关联数据SPARQL查询

选择查询的模板,在编辑框中输入SPARQL查询语句,点击右上角查询按钮执行查询。

1 主题词表本体相关查询
  • 1.1本体包含的类

    敦煌壁画叙词表本体模型的类。select DISTINCT ?class where{[] a ?class}

  • 1.2查询所有谓语

    敦煌壁画叙词表本体模型使用的属性。select DISTINCT ?properties where{?subject ?properties ?object}

2 主题词相关查询
  • 2.1 主题词模糊查询
  • 查询首选标签中含有"菩萨"的主题词。select * where{?concept skos:prefLabel ?label. Filter(contains(?label,'菩萨'))}

  • 2.2 主题词精确查询

    查询"菩萨"主题词。select * where{?concept skos:prefLabel '菩萨'@zh. ?concept ?predicate ?object}

  • 2.3 查询某主题词的下位词
  • 查询"菩萨"主题词的下位词。select ?concept ?label where{dunhuang:tema239 skos:narrower ?concept. ?concept skos:prefLabel ?label}

  • 2.4 查询某主题词的上位词

    查询"菩萨"主题词的上位词。select ?concept ?label where{dunhuang:tema239 skos:broader ?concept. ?concept skos:prefLabel ?label}

3 主题词表数据统计
4 特色查询
  • 4.1 敦煌壁画的种类有哪些

    即"敦煌壁画"主题词包含的实例。SELECT ?murals ?title WHERE { dunhuang:tema2616 skos:narrower ?murals. ?murals skos:prefLabel ?title.}

  • 4.2 敦煌有哪些神奇动物
  • 即"神话动物"主题词包含的实例。 SELECT ?animals ?name WHERE { dunhuang:tema607 skos:narrower ?animals. ?animals skos:prefLabel ?name.}

查询结果: