我安装了Fuseki2,并将其作为具有默认设置(http://localhost:3030/)的独立服务器运行。
我通过“管理数据集”控制台上传这样的信息来创建内存中的数据集(“地理”):
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix schema: <http://schema.org/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix pd: <http://localhost:3030/geography/ontology/> .
pd:City
rdf:type owl:Class ;
rdfs:comment "Represents a City in the ontology" .
<http://localhost:3030/geography/City/>
a dcat:Dataset;
schema:name "City information";
schema:description "Dataset with all the country's cities' information from 2018." ;
<http://localhost:3030/geography/City/1100015>
a pd:City;
rdfs:label "Rome" ;
pd:isCapital "1"^^xsd:int .虽然我可以通过SPARQL查询获得值(例如。前缀dcat:http://www.w3.org/ns/dcat#选择{?s其中{?是dcat:Dataset.}),我不能访问此节点的信息(http://localhost:3030/geography/City/1100015),例如,我会这样:http://dbpedia.org/page/Rome。
是否有一种方法可以配置Fuseki服务器来取消对我上传的URI的引用并返回节点的信息?
发布于 2019-10-04 13:50:35
显然,使导入的URI可解析的唯一方法是使用链接数据接口(如Pubby (http://wifo5-03.informatik.uni-mannheim.de/pubby/)或LOD (https://github.com/LodLive/LodView) )。
一旦安装完毕,就可以将它们指向Fuseki的SPARQL端点。
使用LodView配置文件(config.ttl)的示例:
conf:IRInamespace <http://localhost:3030/geography/> ; # base namespace for URIs
conf:endpoint <http://localhost:3030/sparql>; # where to query您可以通过内容协商访问http://localhost:8080/lodview/geography/City/1100015。
https://stackoverflow.com/questions/58227391
复制相似问题