大佬教程收集整理的这篇文章主要介绍了SPARQL 选择单元文本(空白节点),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近开始使用关联数据和 SPARQL。 我有一个包含 unittext 的数据集,指示属性的单位类型(米、公斤等)。 单位是插入在对象与其数量属性之间的关系上的值。 在我的 RDF 数据集中,单位包含在一个空白节点中并由 https://schema.org/unitText 表示。
下面包含一个数据集示例。
Widget build(BuildContext context) {
return Scaffold(
backgroundcolor: appPrimarycolor,// <---- add here
body: CustomScrollVIEw(
controller: _scrollController,slivers: <Widget>[
SliverAppbar(
pinned: true,snap: false,floating: false,elevation: 0.0,// Remove Appbar bottom border
leading: new Container(),TitleSpacing: 0,expandedHeight: 100.0,flexibleSpace: LayoutBuilder(
builder: (BuildContext context,BoxConstraints constraints) {
top = constraints.biggest.height;
return FlexibleSpacebar(
centerTitle: true,Titlepadding: EdgeInsets.zero,Title: top >= 86
? null
: topToolbarWidget(),background: sliverBackgroundWidget()
);
})),SliverList(
delegate: SliverChildListDelegate(
[
PromotionSlIDer()
],),],));
}
如何选择此属性?
到目前为止的查询是:
],[
a owl:Restriction ;
owl:minCardinality "0"^^xsd:nonNegativeInteger ;
owl:onProperty <https://someuri> ;
ns1:unitText "kg"
RDF 数据集实际上是这样的:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-Syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
select distinct ?label ?aspect ?datatype where {
?s rdfs:subClassOf/owl:onProperty ?aspect .
?aspect rdf:type owl:ObjectProperty.
?aspect skos:prefLabel ?label .
?aspect rdfs:range ?datatype .
FILTER EXISTS{ ?aspect rdfs:range ?datatype. }
VALUES ?datatype {
xsd:string
xsd:gYear
xsd:boolean
xsd:decimal
xsd:integer
xsd:date
}
}
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的SPARQL 选择单元文本(空白节点)全部内容,希望文章能够帮你解决SPARQL 选择单元文本(空白节点)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。