auino
auino

Reputation: 1656

Execute a SPARQL query in SWI-Prolog, on a OWL ontology

I'd like to know how to execute a SPARQL query in SWI-Prolog, after I've loaded an ontology from a OWL/RDF file.

I've found that it's possible to execute a query through sparql_query/3, but it require a server.

Upvotes: 2

Views: 710

Answers (1)

kba
kba

Reputation: 1177

You could dig into the code of ClioPatria, which is a Semantic Web server written in Prolog. I'm sure there is code for loading an RDF/XML file and querying the graph using SPARQL without actually running the server.

Running an easy-to-use SPARQL server like Fuseki and do data adding and querying via SPARQL(U) or command line is probably easier though.

Upvotes: 1

Related Questions