1、Dataset 查询构建 设计方案,刘庆霞 Websoft Group NJU,2018/12/26,查询构建,提供一种交互方式,让用户 在逐步探索中了解数据的schema 在浏览过程中构建查询 得到相应的实例层查询结果,2,初步调研,T. Catarci, T. D. Mascio, E. Franconi, G. Santucci, and S. Tessaris. An ontology based visual tool for query formulation support. In Proc. of ECAI 2004. Nikolaos Athanasis, Vassilis
2、Christophides, Dimitris Kotzinos: Generating On the Fly Queries for the Semantic Web: The ICS-FORTH Graphical RQL Interface (GRQL). International Semantic Web Conference 2004: 486-501.Russell, A., Smart, R., Braines, D., and Shadbolt, R.: NITELIGHT: A Graphical Tool for Semantic Query Construction.
3、In Proceedings of the Semantic Web User Interaction Workshop (SWUI). 2008.,3,初步调研 An ontology based visual tool for query formulation support,4,特点 tree structured query substitution by navigation refinement by compatible terms property extension(to create a new branch) define sub-query,特点 以class为节点
4、保留访问路径 可将浏览过程转换为RQL查询,初步调研 Generating On the Fly Queries for the Semantic Web: The ICS-FORTH Graphical RQL Interface (GRQL),5,特点 基于SPARQL图形化构造查询 可表达Optional、Union、Variable filter 可将浏览过程转换为RQL查询,初步调研 NITELIGHT: A Graphical Tool for Semantic Query Construction,6,特点 基于SPARQL图形化构造查询 可表达Optional、Union、Va
5、riable filter ontology browser,初步调研 NITELIGHT: A Graphical Tool for Semantic Query Construction,7,Dataset查询构建框架,8,query displayed as a tree restrict new a child node(a new variable) rename delete,restrictions of current nodetypesrelations with ancestors,variable list,result table,示例,select person wh
6、o is a scientist and works in an university located in his/her birthplace,9,select ?person where ? person rdf:type Scientist .? person hasAffiliation ?x .? person birthplace ?y .?x rdf:type University .?x location ?y .,示例,10,Create query,Restrictions,Results,示例,11,Restrictions,Results,示例,12,Restrict
7、ions,Results,示例,13,Query Tree,Add Restrictions,?person,?person (?person, rdf:type, Person),示例,14,Query Tree,Add Restrictions,?person,?person (?person, rdf:type, Person),?person,rename delete new variable,示例,15,Query Tree,Add Restrictions,?person,?person,?person,示例,16,Query Tree,Add Restrictions,?per
8、son,?person (?person, rdf:type, Person),?person,示例,17,Query Tree,Add Restrictions,?x,(?person, has affiliation, ?x),示例,18,Query Tree,Add Restrictions,?x,(?person, has affiliation, ?x),示例,19,Query Tree,Add Restrictions,?x,(?person, has affiliation, ?x),rename delete new variable,示例,20,Query Tree,Add
9、Restrictions,?x,(?person, has affiliation, ?x),示例,21,示例,22,Query Tree,Add Restrictions,?y,(?x, location, ?y),relations: ?person birthplace ?ydeathplace ?y,特点,查询 含义: triple pattern的集合 构成元素: class、property、variable (涉及实例层数据的查询在未来“查询过滤”中解决)变量关联树 节点 triple pattern中的变量 树中的边新节点生成的依据 父子关系节点生成的先后关系 节点上的约束 类型约束 + 与祖先节点关联的边构造过程 以Class生成根节点 逐步选择property扩展生成新的节点 在节点上添加约束 限定节点类型 引入环,23,Thank You ,Any suggestions?,