Roberto,

On 18 Feb 2010, at 18:21, Roberto García wrote:

> Hi Hugh,
> 
> I'm using Virtuoso inferencing. By de way, I understand that third
> party Jena inferencing is to perform inferencing in the Jena Model
> returned by a query to Virtuoso, am I right?

[Hugh] I am not sure what you mean by this ?

> 
> Well, continuing with the issue, what I would like to do is to
> associate a rule set to a graph (as done with the the function
> rdfs_rule_set) but to do so from the Java source code.
> 
> In other words, if the application is deployed by a user, there is no
> need to go to the iSQL Virtuoso interface and type there the
> rdfs_rule_set command. Is this possible?

[Hugh] As the rdfs_rule_set command it a stored procedure it can be call from 
any of our available data access clients (ODBC, JDBC, Jena etc) using the "CALL 
procname" syntax ie for ODBC as an example:

iodbctest DSN=virtla;UID=dba;PWD=dba"
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0607.1008
Driver: 05.11.3040 OpenLink Virtuoso ODBC Driver (virtodbc.so)
SQL>CALL DB.DBA.rdfs_rule_set ('http://localhost:8890/schema/property_rules1', 
'http://localhost:8890/schema/test')
Statement executed. 0 rows affected.

SQL>

Regards
Hugh

> 
> Best,
> 
> Roberto García
> http://rhizomik.net/~roberto
> 
> 
> 
> 2010/2/18 Hugh Williams <hwilli...@openlinksw.com>:
>> Hi Roberto,
>> 
>> Are you seeking to use a third party of built in Jena inferencing library 
>> with Virtuoso or the Virtuoso built in inferencing as detailed at:
>> 
>>        http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html
>> 
>> As I don't see why you cannot using Virtuoso inferencing with Jena when 
>> querying the Virtuoso RDF store ?
>> 
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software
>> Web: http://www.openlinksw.com
>> Support: http://support.openlinksw.com
>> Forums: http://boards.openlinksw.com/support
>> Twitter: http://twitter.com/OpenLink
>> 
>> On 17 Feb 2010, at 10:04, Roberto García wrote:
>> 
>>> Hi Hugh,
>>> 
>>> Thanks, I have tried with Virtuoso 06.01.3126 and the virt_jena.jar it
>>> includes and now it works fine.
>>> 
>>> Now, I'm trying to make inference work. However, I can't find any
>>> example showing how to define a rule set from Java through the classes
>>> provided by virt_jena.jar or virtjdbc3.jar. Finally, is it possible to
>>> use the same graph for instance data and schemas?
>>> 
>>> The motivation for all that is to build a web application that can be
>>> easily deployed over different metadata stores, including Virtuoso,
>>> without requiring a lot of configuration effort.
>>> 
>>> Best,
>>> 
>>> 
>>> Roberto García
>>> http://rhizomik.net/~roberto
>>> 
>>> 
>>> 
>>> 2010/2/16 Hugh Williams <hwilli...@openlinksw.com>:
>>>> Hi Roberto,
>>>> 
>>>> Virtuoso 06.01.3126 is release and available for download from the 
>>>> following location:
>>>> 
>>>>        http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSDownload
>>>> 
>>>> Can you please download and update you installation with this latest 
>>>> release, and repeat the test to see if the issue still occurs ...
>>>> 
>>>> Best Regards
>>>> Hugh Williams
>>>> Professional Services
>>>> OpenLink Software
>>>> Web: http://www.openlinksw.com
>>>> Support: http://support.openlinksw.com
>>>> Forums: http://boards.openlinksw.com/support
>>>> Twitter: http://twitter.com/OpenLink
>>>> 
>>>> On 16 Feb 2010, at 12:17, Roberto García wrote:
>>>> 
>>>>> Dear all,
>>>>> 
>>>>> I'm using the Virtuoso Jena Provider with Virtuoso 06.00.3123 but I'm
>>>>> getting an exception when serialising the Jena Model (Jena 2.5.7) I
>>>>> get from a describe SPARQL query.
>>>>> 
>>>>> The source code is:
>>>>> 
>>>>> ByteArrayOutputStream out = new ByteArrayOutputStream();
>>>>> VirtuosoQueryExecution qexec =
>>>>> VirtuosoQueryExecutionFactory.create(queryString, graph);
>>>>> Model results = qexec.execDescribe();
>>>>> results.write(out, "RDF/XML-ABBREV");
>>>>> 
>>>>> An the query:
>>>>> 
>>>>> DESCRIBE ?r
>>>>> FROM <http://rhizomik.net>
>>>>> WHERE { ?r  <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
>>>>> <http://purl.org/rss/1.0/item> .}
>>>>> 
>>>>> The exception is:
>>>>> 
>>>>> com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute
>>>>> URIrefs can be included in RDF/XML output: <The first version of
>>>>> Rhizomer, version 0.1, is announced at the EKAW'08 conference.> Code:
>>>>> 58/REQUIRED_COMPONENT_MISSING in SCHEME: A component that is required
>>>>> by the scheme is missing.
>>>>> 
>>>>> However, if I perform the same query through the Virtuoso SPARQL
>>>>> endpoint I get the following triples:
>>>>> 
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://purl.org/dc/elements/1.1/date>  "2008-10-03"
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>       
>>>>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/2002/12/cal/icaltzd#dtend>   "2008-10-03"
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://purl.org/rss/1.0/description>   "The
>>>>> first version of Rhizomer, version 0.1, is announced at the EKAW'08
>>>>> conference." .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://purl.org/rss/1.0/title> "Rhizomer
>>>>> 0.1 is announced at EKAW'08" .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/2003/01/geo/wgs84_pos#lat>   "37.563855"
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/2003/01/geo/wgs84_pos#long>  "15.161365"
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/2002/12/cal/icaltzd#dtstart> "2008-10-03"
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://purl.org/rss/1.0/link>  
>>>>> "http://localhost:8080/rhizomer/html/blog/2008/10/03/announced-rhizomer-0.1/";
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://purl.org/dc/elements/1.1/creator>       
>>>>> <http://purl.org/dc/elements/1.1/creator>
>>>>> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/2000/01/rdf-schema#label>    "Announced
>>>>> Rhizomer 0.1" .
>>>>> 
>>>>> It seems that the query result is not correctly serialised into the
>>>>> Jena Model and a literal is modelled using a resource Jena object. Is
>>>>> this a bug or am I doing something wrong?
>>>>> 
>>>>> In fact, there is strange triple in the NTriples serialisation:
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>       
>>>>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
>>>>> .
>>>>> 
>>>>> that is not present in N3/Turtle one:
>>>>> @prefix ns1:  <http://purl.org/rss/1.0/> .
>>>>> <http://localhost:8080/rhizomer/blog/2008/10/03/announced-rhizomer-0.1/>  
>>>>>     rdf:type        ns1:item
>>>>> .
>>>>> 
>>>>> 
>>>>> Best,
>>>>> 
>>>>> Roberto García
>>>>> http://rhizomik.net/~roberto/
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>>>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>>>> http://p.sf.net/sfu/solaris-dev2dev
>>>>> _______________________________________________
>>>>> Virtuoso-users mailing list
>>>>> Virtuoso-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>>> 
>>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
>>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
>>> http://p.sf.net/sfu/solaris-dev2dev
>>> _______________________________________________
>>> Virtuoso-users mailing list
>>> Virtuoso-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>> 
>> 
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to