开发者

Run SPARQL Queries on Drupal Nodes

Is there a way to ru开发者_运维问答n SPARQL queries on the RDF generated for certain type of nodes? E.g., if I have a content type called People described by the FOAF ontology, can I run SPARQL queries on nodes of type People?


If you are trying to query from one site to another (see my comment), you should be able to achieve this using the SPARQL Views module. This recent article provides excellent reference for using SPARQL together with Views.


The RDF in Drupal simply maps the data that is already structured in the Drupal database to RDF terms. It is meant to increase data interoperability between systems, so that you can exchange data between two different sites.

If you are working within one Drupal installation, you should be able to access the data that you need without using RDF.

The query that you are describing sounds like one that could be handled without using SPARQL, and by instead using Views (just a regular, content View), filtering by the skill you want.


There was a RDF SPARQL Endpoint module, but it is no longer maintained. However its page suggests that you

use Drupal 7 with the RDF Extensions (RDFx) module and the SPARQL module, which includes the same functionality.

The RDFx page says that:

The site RDF data can be made available in a SPARQL endpoint with the SPARQL module

The "last updated" dates on those page are somewhat old, but the latest development releases of the modules are both in 2013.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜