rdf

how to write RDF domain and range restriction based on property value rather than class

时光毁灭记忆、已成空白 提交于 2020-06-17 03:47:29
问题 I have the following case which I'm trying write an RDF/OWL rule for. The goal is to improve consistency checking in the resulting data base. I have a class called "Expression" and a class called "Manifestation", they can be related by "hasManifestation". It easy to enough to restrict the domain and range accordingly so that the domain of "hasManifestation" is "Expression" and the Range is "Manifestation". But I want to go one step further. Expressions and Manifestation have a property called

Great RDF visualization tools [closed]

感情迁移 提交于 2020-06-09 07:37:06
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to find some great tools or styles to visualize my RDF data so that it can give viewers a shock when they access the RDF data. The problem is that the visualization tools I get now can just generate some simple styles (node,edge...) like below: They look ugly because edges take

How do I add a start and end time to a RDF triple?

夙愿已清 提交于 2020-05-28 04:12:48
问题 Supposing we have the following triple in Turtle syntax: <http:/example.com/Paul> <http:/example.com/running> <http:/example.com/10miles> . How do I add a start and end time? For example if I want to say he started at 10 am and finished his 10miles run at 12 am. I want to use xsd:dateTime . 回答1: One way of doing this is through reification - making statements about the statement. Here, you have a choice of giving the statement a URI, so that it's externally dereferenceable, or using a blank

How do I add a start and end time to a RDF triple?

允我心安 提交于 2020-05-28 04:10:13
问题 Supposing we have the following triple in Turtle syntax: <http:/example.com/Paul> <http:/example.com/running> <http:/example.com/10miles> . How do I add a start and end time? For example if I want to say he started at 10 am and finished his 10miles run at 12 am. I want to use xsd:dateTime . 回答1: One way of doing this is through reification - making statements about the statement. Here, you have a choice of giving the statement a URI, so that it's externally dereferenceable, or using a blank

is there a way to parameterize a sparql filter condition?

荒凉一梦 提交于 2020-05-17 06:01:30
问题 I am trying to find out what is the best way to parameterize a filter condition with a float value taken as input. count=25.67 FILTER(?price < count) instead of: FILTER ( ?price < 25.67 ) The value of "count" will be taken as input. I would like to know the syntax for including the object count in the FILTER command. Thank you in advance. 回答1: Here's an example of setQuery use with a parameter added via `.format(): from SPARQLWrapper import SPARQLWrapper, JSON def query_dbpedia(my_uri) sparql

variable 'x' in projection not present in GROUP BY

∥☆過路亽.° 提交于 2020-04-16 02:23:09
问题 I want to count municipalities and what I have in parentheses work. However, I want to get another variable too, but when I am adding it to SELECT, I am getting: org.openrdf.query.MalformedQueryException: variable 'region_name' in projection not present in GROUP BY. In my query I have: "SELECT ?region_name (COUNT(?municipality) AS ?count) " + What am I missing? Notice that I do not have anything like GROUP anywhere in my project, I think it is happening internally of Sesame. I just saw that

variable 'x' in projection not present in GROUP BY

▼魔方 西西 提交于 2020-04-16 02:21:48
问题 I want to count municipalities and what I have in parentheses work. However, I want to get another variable too, but when I am adding it to SELECT, I am getting: org.openrdf.query.MalformedQueryException: variable 'region_name' in projection not present in GROUP BY. In my query I have: "SELECT ?region_name (COUNT(?municipality) AS ?count) " + What am I missing? Notice that I do not have anything like GROUP anywhere in my project, I think it is happening internally of Sesame. I just saw that

configure fuseki with TDB2 and OWL Reasoner

浪子不回头ぞ 提交于 2020-03-23 04:27:06
问题 New to fuseki/jena here. I managed to get fuseki to run with OWLFBRuleReasoner using tdb1 no problem, but can't make it work with tdb2 (http://jena.apache.org/2016/tdb#). I could not find an explicit example of configuration that uses both TDB2 and OWLFBRuleReasoner, so I just converted this one (that works) @prefix : <http://base/#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix ja: <http://jena.hpl.hp.com/2005/11

文献阅读笔记(五)

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-08 19:52:37
2019 Journal of Web Semantics_Linking and disambiguating entities across heterogeneous RDF graphs笔记整理 一、 论文整理思路流程 1.1 论文的相关研究工作 CBD(Concise Bounded Descriptions )简洁有界描述 面对数据相关参数(如选择哪一个属性作为标记)时减少人工识别的困难 根据大量语义实例和现实实例的对数据异质性的分类 提出了基于CBD的实例分析框架,用于在匹配阶段对数据来源进行表示和比较 一种新策略,用于自动识别移除两个数据集之间的“问题”属性(不适合作为标签的属性) 对于大量开源基准的多方面经过检验的衡量标准(基准的衡量标准) 有简易交互界面的本文提出的系统的开源实例 首先提出了数据异质性的分类:根据先前的研究,本文专注于两个数据集之间对于某一信息描述的不同从而发现形式上(属性还是类别)值上和结构上的异质性。本文尤其关注且使用高度异质化的现实经典音乐数据集和大量IM@OAEI产生的合成基准。 1.2 论文主要解决的问题 1.3 论文解决问题的过程 1) 数据值维度的异质性:术语异质性(由于词语的同义性、不同词语的多义性产生,也包括少量的单词拼写错误)、语言异质性(不同语言互相翻译造成的)、数据属性和对象属性异质性

文献阅读笔记(三)

北战南征 提交于 2020-03-08 19:46:32
2015 Information Fusion_Faceted fusion of RDF data笔记整理 一、 论文整理思路流程 1.1 论文的相关研究工作 距离匹配的RDF融合算法 基于内联的RDF融合算法 基于规则限制的RDF融合算法 RDF数据碎片化:特定主题的RDF数据分散在众多不同的数据集中,每一个数据集中的RDF数据仅包含主题的某一个方面。 将分散的RDF数据根据不同的方面整合到同一主题中 从RDF搜索引擎返回的结果中构造TRG(特定主题的RDF图)然后使用RDF分割算法发现一系列方面。 使用RDF分割算法发现一系列方面。 对于TRG的分析:在TRG中,节点是三元组的s或者o,边则是对应三元组的p,一条边及两端顶点构成一条三元组。而在TRG中边被分为两种类型,一种反映了s与o的关系,另一种则反映了两个s之间的关系。TRG图可以仅考虑s之间的边而被分割为结构图。 关于使用的数据集:通过从网络爬取数据获得六个计算机领域主题的数据集,首先人工标注出各个主题的方面,用于之后的方法对比 关于获得的TRG图:发现每一个节点的平均的度是2到3.5,98%的节点是孤立的;此外两个相连接的顶点大部分(96%)都指向同一个方面。此外根据Jaccard相似度计算得到两节点相似度分数越高越可能指向同一个节点(由此可以设置一个阈值)。 方面发现算法:将RDF图分割为k个不相交的子图