virtuoso

Defining endpoints in Virtuoso

放肆的年华 提交于 2019-12-22 22:17:09
问题 How can I define a new endpoints for my ontology in Virtuoso? I was able to upload my ontology via Virtuoso Conductor in the RDF Store Upload tab. Now I need to define a set of endpoints to be able to use them in my application via HTTP. Is there any tab in Virtuoso Conductor that implements a user friendly interface for creating an end point, and how can I do it? Do I need to use some external tool? 回答1: Virtuoso's web server has the capability to create extra listeners using the conductor

SPARQL to get all parents of all nodes

戏子无情 提交于 2019-12-22 13:07:12
问题 I have been using this post to get the parents or lineage of a single RDF node: SPARQL query to get all parent of a node This works nicely on my virtuoso server. Sorry, couldn't find a public endpoint containing data with a similar structure. prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix bto: <http://purl.obolibrary.org/obo/> select (group_concat(distinct ?midlab ; separator = "|") AS ?lineage) where { bto:BTO_0000207 rdfs:subClassOf* ?mid . ?mid rdfs:subClassOf* ?class . ?mid

Extract all parents of a given node

◇◆丶佛笑我妖孽 提交于 2019-12-20 06:28:20
问题 I'm trying to extract all parents of a each given GO Id (a node) using EBI-RDF sparql endpoint, I was based on this two similar questions to formulate the query, here're two examples illustrating the problem: Example 1 (Link to the structure): biological_process (GO:0008150) |__ metabolic process (GO:0008152) |__ methylation (GO:0032259) In this example, using the following query: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

how to use Union/or in sparql path with arbitrary length?

陌路散爱 提交于 2019-12-14 02:19:46
问题 I'm using below query to find all properties with domain of city (or superclasses of city) or range of country (or superclasses of country) from DBPedia ontology. when I use path with fixed length there is no problem but when I put * to define paths with arbitrary length, I get this error: Virtuoso 37000 Error SP031: SPARQL compiler: Variable '_::trans_subj_6_4' is used in subexpressions of the query but not assigned my SPARQL: define sql:signal-void-variables 1 define input:default-graph-uri

SWRL and Virtuoso

牧云@^-^@ 提交于 2019-12-13 21:29:07
问题 I'm looking for a clear approach to use SWRL clearly in virtuoso server. For example, I designed an ontology using Protege 4.3 and I wrote the SWRL rules using Rules tab in Protege. Product(?P),hasName(?P,?N),inGroupB(?P,?B)->hasBug(?P) I uploaded my RDF data (~3GB) into Virtuoso server, along with the Ontology schema. I tried to recall the data that is supposed to be inferred based on the Rules in the ontology but the query return empty results. Example of the SPARQL query that it should

Alternatives to SPARQL query with lots of UNIONs

让人想犯罪 __ 提交于 2019-12-12 14:23:12
问题 I have some named graphs stored in Virtuoso, and I want to find the one that matches the highest number of terms from a provided list. My query is constructed programatically and looks like this: SELECT DISTINCT ?graph (count(DISTINCT ?match) as ?matches) WHERE { GRAPH ?graph { {?match rdf:label "term 1"} UNION {?match rdf:label "term 2"} UNION {?match rdf:label "term 3"} ... } } ORDER BY DESC(?matches) Each term becomes another UNION clause. Is there a better way to do this? The query gets

Persist Data with DotNetRdf and Virtuoso Manager

▼魔方 西西 提交于 2019-12-12 05:15:00
问题 I tried following the dotnetrdf documentation to store data in a Virtuoso Server. Here is what I do: public void LoadGraph() { //Create our Storage Provider - this example uses Virtuoso Universal Server VirtuosoManager virtuoso = new VirtuosoManager("creativeartefact.org", 1111, "DB", "user", "password"); //Load the Graph into an ordinary graph instance first Graph g = new Graph(); virtuoso.LoadGraph(g, new Uri("http://creativeartefact.org/")); //Then place the Graph into a wrapper

Cannot start a service instance in OpenLink Virtuoso Universal Server

橙三吉。 提交于 2019-12-12 04:22:22
问题 Our OpenLink Virtuoso Universal Server at the Ubuntu 12.04.2 LTS. When I run ./virtusoo-start.sh , the service does not startup. and I got the message. Starting Virtuoso instance in [database] The VDBMS server process terminated prematurely after opening the database. *** *** ERROR: Could not start this Virtuoso Instance. *** 21:57:32 ./virtuoso() [0x5eb045] 21:57:32 ./virtuoso() [0x5f3c64] 21:57:32 ./virtuoso() [0x5f4aba] 21:57:32 ./virtuoso() [0x8eb806] 21:57:32 ./virtuoso() [0x8f776a] 21

cannot access RDF Document (Named Graph) IRIs:

青春壹個敷衍的年華 提交于 2019-12-12 03:35:21
问题 I am trying to learn Virtuoso, and I tried for 'Generating Linked Data Views from Relational Data Sources' . I got the URN and try executing the SPARQL execution. with following details: Default Graph IRI: urn:localhost:8890:CSV Query: SELECT * FROM <urn:sparql:tests:create:data> WHERE { ?s ?p ?o } I got output like this: s p o http://localhost:8890/CSV/emp_csv/DEPTNO/1#this http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://localhost:8890/schemas/CSV/emp_csv http://localhost:8890/CSV

Converting an RDB to RDF with autogenerated code

泪湿孤枕 提交于 2019-12-11 11:41:27
问题 I am using the OpenLink Virtuoso software to convert a Relational Database to RDF using this tutorial: Automated Generation of Linked Data Views over Relational Data Sources with Virtuoso I have a database with 5 tables ( Authors , Keywords , Publications , References , Rights ) and I imported them in Virtuoso database using .csv files. So basically I have followed the steps for the "Manual Linked Data Generation & Deployment using the Conductor's HTML-based wizard", because I need to use my