如何在Fuseki2链接数据服务器中取消引用上传的URI节点?

问题描述 投票:0回答:1

我安装了 Fuseki2 并将其作为具有默认设置的独立服务器运行 (http://localhost:3030/)。

我通过“管理数据集”控制台上传包含此类信息的 Turtle 文件,创建了一个内存数据集(“geography”):

@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 查询获取值(例如 PREFIX dcat: http://www.w3.org/ns/dcat# SELECT ?s WHERE {?s a dcat:Dataset.}),但我无法访问此值节点的信息(http://localhost:3030/geography/City/1100015),例如我会这样:http://dbpedia.org/page/Rome

有没有一种方法可以配置Fuseki服务器来取消引用我上传的URI并返回节点的信息?

fuseki linked-data
1个回答
2
投票

显然,使导入的 URI 可解析的唯一方法是使用链接数据接口,例如 Pubby自 1/2021 起不再维护)或LOD View

安装后,您可以将它们指向 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。

© www.soinside.com 2019 - 2024. All rights reserved.