Silvia Stefanova wrote:
Hello,

I am using V5 and I would like to query by Sparql relational data stored in MS SQL server. In order to achive this I made the following steps: 1) Link my database ( a table person with columns sn, name, tel) from MSSQL server into Virtuso
2) Go through 'Generate and Publish RDF view' and so receive the sample URIs
3) Later query the RDF view by Sparql query using isql.
Then I see by the answer of the query that not all relational data is published as RDF. For instance the following query

SPARQL
prefix person: <http://localhost:8890/schemas/person/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select ?s
 WHERE {?s rdf:type person:person.};

returns only http://localhost:8890/person/person/sn/1#this, which corresponds to the 1st row in my table person despite that the number of the rows is 10.

Would you please, explain how to publish the whole relational data as RDF in order to get correct result by Sparql!

I think you have a Named Graph IRI scope issue. Note, RDF Views data resides in specific Graph IRIs associated with the RDF Views engine.

Repeat the SPARQL above with a FROM CLAUSE <RDF-View-Graph-IRI> .

Kingsley
Regards,
Silvia


------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users



--

Regards,

Kingsley Idehen President & CEO OpenLink Software Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen





Reply via email to