简体   繁体   English

GraphDB上的资源端点

[英]Resource endpoint on GraphDB

I am trying to query a resource from GraphDB. 我正在尝试从GraphDB查询资源。 I have created a Repository named say theOnto. 我创建了一个名为say theOnto的存储库。 In the graphDB workbench, if I select the Repo from the dropdown and then query a resource, say http://localhost:7200/resource/qLinkage/Program , then it works fine. 在graphDB工作台中,如果我从下拉列表中选择Repo,然后查询资源,例如http:// localhost:7200 / resource / qLinkage / Program ,那么它将正常工作。 This works because some cookie is set for the repository name. 之所以可行,是因为为存储库名称设置了一些cookie。 But I want to hit the same resource url and and get the required data without setting the cookie. 但我想点击相同的资源网址,并获得所需的数据而不设置cookie。

This is possible in many publicly available GraphDBs (eg http://dbpedia.org/resource/Database ) 在许多公开可用的GraphDB中(例如, http: //dbpedia.org/resource/Database),这是可能的

This must be possible with some setting on GraphDB server. 必须在GraphDB服务器上进行某些设置。 There must be some way to specify default repository, if none specified. 如果未指定默认存储库,则必须使用某种方法进行指定。 Can anyone provide some pointers about achieving this? 任何人都可以提供有关实现这一目标的一些指示吗?

Thanks in advance. 提前致谢。

Try with the REST Endpoint first - 首先尝试使用REST端点-

http://localhost:7200/resource?uri=http://your.uri.com/here http:// localhost:7200 / resource?uri = http://your.uri.com/此处

Swap http://your.uri.com/here for your full qLinkage URI. 在此处http://your.uri.com/交换您的完整qLinkage URI。

I would also double check that the qLinkage ontology is loaded into the repository and that qLinkage is the correct namespace prefix that GraphDB is using. 我还要仔细检查qLinkage本体是否已加载到存储库中,并且qLinkage是GraphDB使用的正确名称空间前缀。 If GraphDB has chosen to use ql as its namespace prefix then it will not resolve correctly. 如果GraphDB选择使用ql作为其名称空间前缀,则它将无法正确解析。

You can also set the default repository in Set-up -> Repositories and then use the pin icon. 您也可以在“设置”->“存储库”中设置默认存储库,然后使用图钉图标。 GraphDB 8+. GraphDB 8+。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM