Re: [Virtuoso-users] How can I list granted privileges in Virtuoso?

2019-10-17 Thread Kingsley Idehen
On 10/17/19 1:03 AM, Allan Kamau wrote:
> Is there a "SHOW PRIVILEGES" command on Virtuoso by which I may better
> understand the issue below?
>
> I have a Virtuoso installation for which I am unable to clear the
> graph I constructed. The error message is show below
>
> "Virtuoso 42000 Error SR186:SECURITY: No permission to execute
> procedure DB.DBA.SPARUL_CLEAR with user ID 107, group ID 107"
>
> Below is the command I issued.
>
> ###clear the graph (start)
> sqarql_query="
> CLEAR GRAPH 'http://abc.somethere.com'
> " \
>  && time curl \
>   --user dba:secret \
>   -X POST "http://xyz.somewhere.com:8891/sparql; \
>   -H "Content-Type: application/x-www-form-urlencoded" \
>   -H "Accept:application/sparql-results+json" \
>   --data-urlencode 'format=json' --data-urlencode
> 'default-graph-uri=http://abc.somethere.com' \
>   --data-urlencode "query=${sqarql_query}" \
>   --write-out
> '%{url_effective};%{http_code};%{time_total};%{time_namelookup};%{time_connect};%{size_download};%{speed_download}\n'
> \
> ;date;
> ###clear the graph (end)


Allan,

Due to the nature of this kind of issue and it broader benefits to
others, would you be able to move this question over to our community
forum? l1].


[1] https://community.openlinksw.com/c/rdbms .


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Executing commands from file via isql

2019-07-03 Thread Kingsley Idehen
On 7/3/19 10:31 AM, Allan Kamau wrote:
> I am trying to execute some GRANT commands and an UPDATE command to
> change the WS.WS.SYS_DAV_USER from a file using isql.
>
> The command I have looks something like this.
>
> isql -S  -U dba -P dba /path/to/some/file.sql;
>
> When I execute the above it seems the file (and its contents) are
> ignored and I get the SQL>prompt.
>
>
> Is there a switch I may have left out.
> Somehow it seems this simple exercise has taken me hours so far to debug.
>
> In short is there a way I can execute SQL command from a file the same
> way I could execute commands from PostgreSQL using psql?
>
>
>
> Allan.
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Allan,

Our iSQL command allows you to execute statements via a file.

isql  dba dba VERBOSE=OFF 'EXEC=status()' test.sql test2.sql -i arg1 arg2

I would strongly encourage you to use our community forum [2] for posts
like this since it has the dual benefits of exposing your questions to
other Virtuoso users while also encouraging crowd-support :)

Links:

[1] http://docs.openlinksw.com/virtuoso/invokingisql/

[2] https://community.openlinksw.com/


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] federated query over VAL secured endpoints

2019-06-27 Thread Kingsley Idehen
On 6/27/19 1:26 AM, 宗像善久 wrote:
> Hi,
>
> Is it possible to execute federated query over OpenID connect
> authenticated
>  VAL secured SPARQL endpoints ? (VAL:Virtuoso Authentication Layer)
> Is someone know the detailed relation between the virtuoso authentication
> mechanism and the virtuoso implementation specification about
> federated query?
>
> I'd appreciate it if you let me know.
>
> Thanks in advance,
>
>
>
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Not at the current time, without custom development i.e., implementing
OpenID Connect as part of the SPARQL-FED implementation.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] I want to know how much memory of virtuoso can be reduced.

2019-06-14 Thread Kingsley Idehen
On 6/13/19 10:13 PM, sagawa_e...@fujitsu.com wrote:
> I want to downsize the memory of virutoso. I want to know how much memory of 
> virtuoso can be reduced.
> 私はvirutosoのメモリのダウンサイジングを行いたい。私はvirtuosoのメモリをどこまで縮小できるのかを知りたい。
>
> I know that the memory is reserved as per the NumberOfBuffer value.  (I saw 
> with ps command.)
> 私はNumberOfBuffer値の通りにメモリが確保されていることは知っている。 (私はpsコマンドで見た。)
>
> However, I do not know what data is loaded on virtuoso's memory and whether 
> it is fully used.
> しかし、virtuosoのメモリ上にどのようなデータがロードしているのか、そしてフルに使われているのかが分からない。


Hi Eiji,

>
>
> [私の質問]
> [My questions]
>
>   1. I want to know how to find out what data is currently deployed in 
> virtuoso's memory.
>   1. 現在どのデータがどれくらいvirtuosoのメモリに展開されているかが把握できる手段を知りたい。


The data in the database is ultimately in memory, subject to the memory
you allocated via buffer settings in the virtuoso.ini file.


>
>   2. I want to know how to check the usage status of the memory area secured 
> by virtuoso.
>   2. virtuosoが確保したメモリ領域の利用状況を確認する手段を知りたい。


You can use commands like top and ps commands for that, during the
progression of your usage from initial startup to warm up stage etc..


>
>   3. Besides caching by search execution, I would like to confirm the method 
> if there is a method to expand arbitrary data in virtuoso's memory beforehand.
>   3. 検索実行によるキャッシュ以外に、予め任意のデータをvirtuosoのメモリへ展開する方法があればその手段を確認したい。


You do that via buffers settings.

There is also a publicly available Google Spreadsheet about variety
Virtuoso instance that could also be of help here.


Links

[1]
https://docs.google.com/spreadsheets/d/1-stlTC_WJmMU3xA_NxA1tSLHw6_sbpjff-5OITtrbFw/edit

[2] https://community.openlinksw.com/ -- our active community forum for
additional assistance

Kingsley

>
>
>
> [About server environment]
> [サーバ環境について]
>
>   Physical/Virtual Type : Virtual machine
>   物理/仮想種別:仮想マシン
>
>   Operating System:CentOS 7.3 (64bit) 
>
>   Number of processors : 10
>   プロセッサー数:10
>
>   OS installed memory : 512GB
>   OS搭載メモリ:512 GB
>
>   Data file (virtuoso.db) size : 680GB
>   データファイル(virtuoso.db)サイズ : 680GB
>
>
> [Other]
> [その他]
>   I changed the NumberOfBuffer and MaxDirtyBuffers values in virutoso.ini and 
> measured the search speed.
>   私はvirutoso.iniのNumberOfBuffer値およびMaxDirtyBuffers値を変えて検索速度を測定した。
>
>   I ran several different searches. The first search has a response from 21 
> seconds to 29 seconds.
>   私は数回の異なる検索を実行した。検索1回目は21秒〜29秒でレスポンスがある。
>
>   The second and subsequent search responses were less than one second.
>   2回目以降の検索レスポンスはいづれの場合も1秒未満であった。
>
>   Search speed did not improve even if the NumberOfBuffer and MaxDirtyBuffers 
> values were high.
>   NumberOfBuffer値およびMaxDirtyBuffers値が大きくても、検索速度は向上しなかった。
>
>   Even if virtuoso reserves memory, is it not loading data at first?
>   virtuosoはメモリを確保していても、最初はデータをロードしていない?
>
>
> よろしくお願い致します。
> Best regards,
> Eiji Sagawa
>
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] CREATE GRAPH command returns error "Error 37000: [Virtuoso Driver][Virtuoso Server]SQ074: Line 1:"

2019-06-12 Thread Kingsley Idehen
On 6/12/19 1:38 AM, Allan Kamau wrote:
> I am trying to load data into Virtuoso server. I order to do so I
> assume I first need to construct a graph into which to load the data.
> I have configured a password for the dba user, then logged in as user
> dba using isql application.
> When I issue a command such as the one below, I am presented with the
> error message "Error 37000: [Virtuoso Driver][Virtuoso Server]SQ074:
> Line 1:"
>
> CREATE GRAPH ;
>
> What could I be doing wrong?
>
> Essentially I have several RDF/XML graph data files that I would like
> to load into Virtuoso.
> Each data file contains data from one row of a CSV spreadsheet.
> All the data belongs to a single dataset hence I assume these data
> should be uploaded into a common "graph".
>
> Allan.


Hi Allan,

In this situation, you would load data into Virtuoso from RDF datasets
using the Bulk Loader [1].


BTW -- we have a Community Forum [2] where you questions would be
exposed to a broader pool of Virtuoso users :)

[1] http://vos.openlinksw.com/owiki/wiki/VOS/VirtBulkRDFLoader -- Bulk
Loading RDF document content into Virtuoso

[2] https://community.openlinksw.com


Kingsley

>
>
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Support for literal as subjects/Relative URI support

2019-02-06 Thread Kingsley Idehen
On 2/4/19 11:20 PM, pranav.puri via Virtuoso-users wrote:
> Hi,
>
> I am using Virtuoso opensource V07.20.3217.I am trying to ingest yago
> dataset into virtuoso .But I am unable to..
>
> I am using DB.DBA.TTLP_MT on isql.
>
> Error: Virtuoso does not support literal subjects
>
> Is it due to the relative URI yago dataset has? How can we handle
> relative URI in virtuoso ?
>
> regards
> Pranav
>
>
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>

RDF doesn't support literal objects, neither does Virtuoso.

Are you sure that you are dealing with literal relation subjects?
Relative URIs are not literal subjects.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Editing forms based on RDF/OWL classes?

2019-01-25 Thread Kingsley Idehen
On 1/25/19 9:50 AM, Peter Lawrence wrote:
> I have created an OData2SPARQL proxy server that publishes any RDF
> model as an OData service
> (http://inova8.com/bg_inova8.com/offerings/odata2sparql/) . That
> service can then be consumed via many HTML/JavaScript frameworks. I
> prefer to use OpenUI5 (https://openui5.org/) but there are many
> others. This combination then allows full round trip viewing and
> editing of the RDF. (https://www.youtube.com/watch?v=QFhcsS8Bx-U).
>
> *Peter J. Lawrence*
> _inova8_
> /*Providing answers for users' information questions*/
> *Mobile:*  +44 7546 095977 | +1 330 631 3772 | *Phone:*+44 1298
> 872375 |*Skype:* PeterJLawrence
> *Email:* peter.lawre...@inova8.com
> <mailto:peter.lawre...@inova8.com> | *Web:*www.inova8.com
> <http://www.inova8.com>
> *LinkedIn: *_http://www.linkedin.com/in/peterjohnlawrence
> _
>
>
> On Fri, 25 Jan 2019 at 14:21, Pantelis Natsiavas  <mailto:natsia...@gmail.com>> wrote:
>
> I am looking for an RDF/OWL based Domain Driven Development (DDD)
> framework.
>
> I have an OWL ontology used as a TBox model uploaded on my
> Virtuoso (open source edition) and I want to build CRUD
> (create-retrieve-update-delete) forms upon my classes defined in
> the TBox. For example, for classes “Student” and “Teacher” I would
> like to create two forms allowing me to
> create-retrieve-update-delete their instances (and of course their
> property values) using a simple User Interface (UI).
>
> If nobody could suggest a solution working out of the box, I was
> thinking that perhaps I could use a data access library for
> virtuoso (e.g. ADO NET/Entity Framework or JDBC/Hibernate) to get
> my *RDF/OWL classes as entities*, and then use .NET or Java based
> Rapid Application Development (RAD) frameworks based on the
> produced entities. I have seen similar approaches on relevant
> (quite outdated) tutorials (tutorial1
> <http://vos.openlinksw.com/owiki/wiki/VOS/VirtRDFODataExample> and 
> tutorial2
> 
> <http://vos.openlinksw.com/owiki/wiki/VOS/VirtUsingMsAdoNetDataServicesWithVirtuoso>)
>
> My questions:
>
>  1. Could anyone propose a specific software stack following this
> rationale of DDD upon RDF/OWL classes?
>  2. I can only find examples using rather old versions of Visual
> Studio. Are the ADO NET and JDBCconnectors stable and updated?
> Can they be used with recent versions of .NET/java development
> stack?
> 3.Is my assumption (i.e. that I could produce .NET or
> Java *entities corresponding to my RDF/OWL classes* via ADO
> NET or Hibernate) valid?
>
> Best regards,
> Pantelis Natsiavas
>
> PS. I have also posted the same question in the community forum
> 
> <https://community.openlinksw.com/t/editing-forms-based-on-rdf-owl-classes/615>
>  because
> it is not clear to me whether this email list is active or not.
> Sorry for double posting.
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> <mailto:Virtuoso-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Hi Peter,

I would very much like to get this OData->SPARQL bridge working so that
it can be widely promoted.  

A few questions:

1. How does it handle protected SPARQL Endpoints?

2. Do you have a live demo instance anywhere ?


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Editing forms based on RDF/OWL classes?

2019-01-25 Thread Kingsley Idehen
On 1/25/19 9:20 AM, Pantelis Natsiavas wrote:
>
> I am looking for an RDF/OWL based Domain Driven Development (DDD)
> framework.
>
> I have an OWL ontology used as a TBox model uploaded on my Virtuoso
> (open source edition) and I want to build CRUD
> (create-retrieve-update-delete) forms upon my classes defined in the
> TBox. For example, for classes “Student” and “Teacher” I would like to
> create two forms allowing me to create-retrieve-update-delete their
> instances (and of course their property values) using a simple User
> Interface (UI).
>
> If nobody could suggest a solution working out of the box, I was
> thinking that perhaps I could use a data access library for virtuoso
> (e.g. ADO NET/Entity Framework or JDBC/Hibernate) to get my *RDF/OWL
> classes as entities*, and then use .NET or Java based Rapid
> Application Development (RAD) frameworks based on the produced
> entities. I have seen similar approaches on relevant (quite outdated)
> tutorials (tutorial1
> <http://vos.openlinksw.com/owiki/wiki/VOS/VirtRDFODataExample> and tutorial2
> <http://vos.openlinksw.com/owiki/wiki/VOS/VirtUsingMsAdoNetDataServicesWithVirtuoso>)
>
> My questions:
>
>  1. Could anyone propose a specific software stack following this
> rationale of DDD upon RDF/OWL classes?
>  2. I can only find examples using rather old versions of Visual
> Studio. Are the ADO NET and JDBCconnectors stable and updated? Can
> they be used with recent versions of .NET/java development stack?
> 3.Is my assumption (i.e. that I could produce .NET or
> Java *entities corresponding to my RDF/OWL classes* via ADO NET or
> Hibernate) valid?
>
> Best regards,
> Pantelis Natsiavas
>
> PS. I have also posted the same question in the community forum
> <https://community.openlinksw.com/t/editing-forms-based-on-rdf-owl-classes/615>
>  because
> it is not clear to me whether this email list is active or not. Sorry
> for double posting.
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Hi Pantelis Natsiavas,


A reply has been posted to our community forum [1], which is our
preferred space for handling matters like this going forward :)

Link:

[1]
https://community.openlinksw.com/t/editing-forms-based-on-rdf-owl-classes/615/2


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] On Linked Data Views

2018-12-19 Thread Kingsley Idehen
On 12/19/18 9:17 AM, Pasquale Di Donato wrote:
> Hi all,
>
> I'd like to provide RDF on top of external relational tables (in
> Postgresql).
> So i guess i will have to use linked data views (and Virtuoso
> commercial edition): am i right?
>
> Are the linked data views dynamically synchronized with the relational
> database? I mean if something is changed in the (external) relational
> database, are these changes automatically available as RDF (via the
> views)?
>
> And can I configure more than 1 view?
>
> Any input will be appreciated,
> Many thanks,
>
> Pasquale


Hi Pasquale,

This is a very important post.

Would you be kind enough to open it up as a topic in our new community
discussion space [1] ?

I (or someone else) will answer it via the discussion topic category
created for this matter [2] :) 


Links:

[1] https://community.openlinksw.com/

[2]
https://community.openlinksw.com/t/about-the-rdf-views-over-sql-data-sources-category/482

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] URI html views, similar to dbpedia

2018-11-14 Thread Kingsley Idehen
On 11/14/18 5:02 AM, Conor Sheehan wrote:
> Hi all,
>
> I'm new to virtuoso. I have a sparql enpoint I'd like to add html
> views to.
> What I mean is that when I run a query I get a table of URIs, but none
> of them resolve to a webpage. I get 
>
>
>   Error HTTP/1.1 404 File not found
>
> The requested URL was not foundURI  = '/place/411'
> All dbpedia URIs resolve to html page, and I'd like my endpoint to
> behave the same way.
>
> Can this be done in virtuoso itself?
> Or do I need to install the facet browser?
> Or some other third party tool?
>
> Thanks in advance,
> Conor
>

Hi Conor,

Due to the fact that this resolution to this question would benefit a
broad audience of Virtuoso users, and the fact that resolution would be
a useful knowledgebase entry for future recall, would you be okay
opening up a topic for this matter in our new community discussion forum
[1] ?

Benefits? Broader audience for problem resolution thereby reducing
response time :)

Links:

[1] https://community.openlinksw.com/c/rdbms/linked-data-deployment --
just click to open a topic in under this category

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com
Weblogs (Blogs):
Company Blog: https://medium.com/openlink-software-blog
Virtuoso Blog: https://medium.com/virtuoso-blog
Data Access Drivers Blog: 
https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers

Personal Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] remove graph limitations on /describe/ service in FCT ?

2018-09-27 Thread Kingsley Idehen
On 9/27/18 1:50 PM, Hugh Williams wrote:
> Hi Thomas,
>
> I am going to open up this question on our community discussion forum at:
>
> https://community.openlinksw.com
>
> so that you and others benefit from the answer, thus can be please
> register and post the question there.Hi Thomas,


I see an answer has already been posted [1].

On a general note, we are encouraging the use of our new community
discussion space due to the fact that it provides a better forum for:

[1] Answer Creation

[2] Answer Publication that leverages Web as a search and query
friendly  Knowledge Graph

Links:

[1]
https://community.openlinksw.com/t/faceted-browser-not-listing-all-resources-on-page-description/93
.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com

Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Can't create ldp:Resource from Turtle file

2018-09-20 Thread Kingsley Idehen
On 9/20/18 8:23 AM, Mark Wilkinson UPM wrote:
> curl --cert {pkcs#12-file}.p12:1234 --cert-type P12 -X POST
> -H'Content-Type: text/turtle' \
> -d '<#this> <#relatedTo> <#that> .' {URI-of-LDP-Folder}/test.ttl 


You mean the following fails?

curl --cert {pkcs#12-file}.p12:1234 --cert-type P12 -X POST
-H'Content-Type: text/turtle' \
-d '<#this> <#relatedTo> <#that> .' {URI-of-LDP-Folder}/test.ttl

If so, please run the following command and then try again:

WEBDAV.DBA.ldp_recovery_aq ('/DAV/{ldp-enabled-folder}')

If that procedure doesn't exist, please create it by running the
following via iSQL UI in the Conductor:

CREATE PROCEDURE ldp_recov (in fld varchar)
{
  DECLARE id int;
  DECLARE path any;
  id := DAV_SEARCH_ID (fld, 'C');
  IF (NOT LDP_ENABLED (id))
    RETURN;
  FOR SELECT COL_NAME FROM WS.WS.SYS_DAV_COL WHERE COL_ID = id DO
    {
  DECLARE s, uri, path any;
  uri := WS.WS.DAV_IRI (fld);
  TTLP ('@prefix ldp: <http://www.w3.org/ns/ldp#> .  <> a
ldp:BasicContainer, ldp:Container .', uri, uri);
  FOR SELECT RES_CONTENT, RES_FULL_PATH FROM WS.WS.SYS_DAV_RES WHERE
RES_COL = id AND RES_TYPE = 'text/turtle' DO
    {
      DECLARE ruri any;
      ruri := WS.WS.DAV_IRI (RES_FULL_PATH);
      TTLP (sprintf ('<%s> <http://www.w3.org/ns/ldp#contains> <%s> .',
uri, ruri), uri, uri);
      {
        DECLARE continue handler for sqlstate '*';
        TTLP (CAST (RES_CONTENT as varchar), ruri, ruri, 255);
      } 
    }
  FOR SELECT COL_NAME FROM WS.WS.SYS_DAV_COL WHERE COL_PARENT = id
AND COL_DET IS NULL DO
    {
      DECLARE ruri any;
      path := fld || COL_NAME || '/';
      ruri := WS.WS.DAV_IRI (path);
      TTLP (sprintf ('<%s> <http://www.w3.org/ns/ldp#contains> <%s> .',
uri, ruri), uri, uri);
    }
    }
  FOR SELECT COL_NAME FROM WS.WS.SYS_DAV_COL WHERE COL_PARENT = id AND
COL_DET IS NULL DO
    {
      path := fld || COL_NAME || '/';
  ldp_recov (path);
    }
};

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com

Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Can't create ldp:Resource from Turtle file

2018-09-20 Thread Kingsley Idehen
On 9/20/18 3:28 AM, Mark Wilkinson UPM wrote:
> After installing the packages via Conductor upload, and confirming
> that ods is now an option (the interface is now available) I'm still
> hitting problems.
>
> I can start "briefcase", and see folders that belong to me (dav user -
> logged-in); however,I cannot interact with them.  I just get thrown
> back to the ODS login page (even though I am logged-in!), which then
> rejects my dav username and password.
>
> If I simply attempt to interact with (via LDP curl calls)  the Public
> or RDFData folders within the dav folder, I still get the turtle
> parser error that I initially reported.
>
> So... I'm not making a lot of progress.
>
> Suggestions?
>
> Mark

You don't really need to take the ODS-Briefcase route into this
LDP/WebDAV realm. You can also get their via the Conductor. Thus, when
you get in via the Conductor UI ("Content Management" menu item) do you
see the "enable LDP" button associated with the property lookup on a
folder?


Kingsley
>
>
>
>
> On 09/19/2018 05:01 PM, Patrick van Kleef wrote:
>> All,
>>
>>
>>> You need to install the  ODS-Framework [1] and ODS-Briefcase [2]
>>> modules
>>> atop your Virtuoso instance. Net effect, it adds an LDP layer to the
>>> Virtuoso WebDAV core.
>>>
>>> Once installed, you can simply perform the following verification
>>> tests.
>>>
>>> Setup verification tests:
>>>
>>>
>>> 1. curl -X OPTIONS -IH "Accept: text/turtle" {URI-of-LDP-Folder}
>>>
>>> 2. curl -iH "Accept: text/turtle" {URI-of-LDP-Folder}
>>>
>>> If the above is successful, you can perform some based read-write
>>> tests:
>>>
>>> JSON-LD:
>>>
>>> curl --cert {pkcs#12-file}.p12:1234 --cert-type P12 -X POST -H
>>> 'Content-Type: application/ld+json' \
>>> -d '[{"@id":"","http://schema.org/name":"Foo"}]'
>>> {URI-of-LDP-Folder}/test.jsonld
>>>
>>>
>>> RDF-Turtle:
>>>
>>> curl --cert {pkcs#12-file}.p12:1234 --cert-type P12 -X POST
>>> -H'Content-Type: text/turtle' \
>>> -d '<#this> <#relatedTo> <#that> .' {URI-of-LDP-Folder}/test.ttl
>>>
>>>
>> VOS requires a different version of the ODS packages in order to work:
>>
>>
>>> Links:
>>>
>>> [1]
>>> http://download3.openlinksw.com/uda/vad-packages/7.2/ods_framework_dav.vad
>>>
>>>
>> http://download3.openlinksw.com/uda/vad-vos-packages/7.2/ods_framework_dav.vad
>>
>>
>>> [2]
>>> http://download3.openlinksw.com/uda/vad-packages/7.2/ods_briefcase_dav.vad
>>>
>> http://download3.openlinksw.com/uda/vad-vos-packages/7.2/ods_briefcase_dav.vad
>>
>>
>>
>> Patrick
>> ---
>> Patrick van Kleef
>> Program Manager
>> OpenLink Software
>>
>> http://www.openlinksw.com/
>> http://twitter.com/openlink/
>>
>>
>>
>> ___
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
>

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   
Home Page: http://www.openlinksw.com
Community Support: https://community.openlinksw.com

Weblogs (Blogs):
Medium Blog: https://medium.com/@kidehen
Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/
  http://kidehen.blogspot.com

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Can't create ldp:Resource from Turtle file

2018-09-19 Thread Kingsley Idehen
On 9/19/18 8:39 AM, Mark Wilkinson UPM wrote:
> Hi all,
>
> I'm following the instructions at
> http://vos.openlinksw.com/owiki/wiki/VOS/VirtLDP and am not having
> much joy. (Virtuoso 7.20)
>
>
> A few things:
>
>
> in Conductor, steps 3 and 4 of "enable LDP on folder" - the
> screenshots don't match what I see.  I have an additional checkbox for
> "LDP enable/disable" (which I have set to "on").  I am unable to set
> properties LDP = ldp:BasicContainer as indicated in the instructions. 
> The LDP property is not in the dropdown list, and if I type it
> manually and press "update" it doesn't stick - it isn't there the next
> time I look at the properties.  I'm guessing that it is working (??)
> because I can create LDP containers as expected... but it's
> disconcerting.
>
> I am, however, unable to create an ldp:Resource from a turtle file. 
> Every Turtle file I try to send (Content-type: text/turtle) fails with
> a HTTP 500:  SP029: TURTLE RDF loader, line 1: syntax error (both PUT
> and POST).
>
> (There is no syntax error in my turtle file - I have tried with
> several, including sample files from W3C)
>
> I am able to create an ldp:Resource that is plaintext (Content-type:
> text/plain header), and the container correctly gets the additional
> "contains" property, so that seems to be working well!
>
> Any advice on creating RDF resources?
>
>
> Thanks!
>
> Mark


Hi Mark,

You need to install the  ODS-Framework [1] and ODS-Briefcase [2] modules
atop your Virtuoso instance. Net effect, it adds an LDP layer to the
Virtuoso WebDAV core.

Once installed, you can simply perform the following verification tests.

Setup verification tests:


1. curl -X OPTIONS -IH "Accept: text/turtle" {URI-of-LDP-Folder}

2. curl -iH "Accept: text/turtle" {URI-of-LDP-Folder}

If the above is successful, you can perform some based read-write tests:

JSON-LD:

curl --cert {pkcs#12-file}.p12:1234 --cert-type P12 -X POST -H
'Content-Type: application/ld+json' \
-d '[{"@id":"","http://schema.org/name":"Foo"}]'
{URI-of-LDP-Folder}/test.jsonld


RDF-Turtle:

curl --cert {pkcs#12-file}.p12:1234 --cert-type P12 -X POST
-H'Content-Type: text/turtle' \
-d '<#this> <#relatedTo> <#that> .' {URI-of-LDP-Folder}/test.ttl


Links:

[1]
http://download3.openlinksw.com/uda/vad-packages/7.2/ods_framework_dav.vad

[2]
http://download3.openlinksw.com/uda/vad-packages/7.2/ods_briefcase_dav.vad

[3]
https://medium.com/virtuoso-blog/http-read-write-operations-using-ldp-protocols-virtuoso-http-s-server-bdaa2736169f
-- Post about LDP & Virtuoso .

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Kingsley Idehen
On 8/22/18 12:01 PM, Peter F. Patel-Schneider wrote:
> More or less, except that CSV output doesn't include language tags and doesn't
> provide facilities for anything other than numeric and string literal values.
> TSV format, on the other hand, does include language tags (shown explicitly in
> an example) and datatypes (implied by wording in several places, particularly
> "The SPARQL Results TSV Results Format does encode the details of RDF terms in
> the results table by using the syntax that SPARQL [SPARQL11-QUERY] and Turtle
> [TURTLE] use. An application receiving a TSV-encoded results set can split
> each line into elements of the result row, and extract all the details it
> wishes to process of the RDF terms by simple string processing, without a
> complete XML or JSON parser required by the more complex SPARQL result 
> formats.).
>
> So it's not a problem with the CSV output but instead with the TSV output.
>
> (I would be happy to have a variant of CSV that included language tags and
> datatypes, but conforming to the requirements of TSV output would be better.)
>
> peter

Okay, so the following shows the problem, right?

http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+distinct+%3Flabel+lang%28%3Flabel%29+as+%3FlangTag%0D%0A+where+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F31_June%3E+rdfs%3Alabel+%3Flabel+%7D=text%2Ftab-separated-values=3

I am purposely using doc URIs as this helps the entire problem
confirmation and resolution cycle.


Kingsley



>
>
> On 08/22/2018 08:51 AM, Kingsley Idehen wrote:
>> On 8/22/18 11:43 AM, Peter F. Patel-Schneider wrote:
>>> Try
>>>
>>> curl http://dbpedia.org/sparql --get   --header "Accept:
>>> text/tab-separated-values"  --data-urlencode query@- <>> select * where { <http://dbpedia.org/resource/31_June> ?p ?o }
>>> EOF
>>>
>>> Note that Work/runtime doesn't have a datatype and the labels don't have a
>>> language tag even though https://www.w3.org/TR/sparql11-results-csv-tsv/#tsv
>>> requires them.  As well, IRIs are enclosed in "" instead of <>.
>>>
>>> Then try the same query on the web interface at https://dbpedia.org/sparql.
>>> There the datatypes and languages tags do show up.  However, there are some
>>> langStrings without language tags there.
>>>
>>>
>>> I'm also running into the same problem with a locally installed Virtuoso 
>>> open
>>> source 7.2.5.
>>>
>>> peter
>>
>> HTML-based SPARQL Results doc:
>>
>> http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+distinct+%3Flabel+lang%28%3Flabel%29+as+%3FlangTag%0D%0A+where+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F31_June%3E+rdfs%3Alabel+%3Flabel+%7D=text%2Fhtm=3
>>
>> CSV-based SPARQL Results doc:
>>
>> http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+distinct+%3Flabel+lang%28%3Flabel%29+as+%3FlangTag%0D%0A+where+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F31_June%3E+rdfs%3Alabel+%3Flabel+%7D=text%2Fcsv=3
>>
>>
>> I believe that demonstrates the problem re missing lang tags in the CSV
>> output, right?
>>
>> -- 
>> Regards,
>>
>> Kingsley Idehen
>> Founder & CEO 
>> OpenLink Software   (Home Page: http://www.openlinksw.com)
>>
>> Weblogs (Blogs):
>> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
>> Blogspot Blog: http://kidehen.blogspot.com
>> Medium Blog: https://medium.com/@kidehen
>>
>> Profile Pages:
>> Pinterest: https://www.pinterest.com/kidehen/
>> Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
>> Twitter: https://twitter.com/kidehen
>> Google+: https://plus.google.com/+KingsleyIdehen/about
>> LinkedIn: http://www.linkedin.com/in/kidehen
>>
>> Web Identities (WebID):
>> Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
>>     : 
>> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
>>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Kingsley Idehen
On 8/22/18 11:43 AM, Peter F. Patel-Schneider wrote:
> Try
>
> curl http://dbpedia.org/sparql --get   --header "Accept:
> text/tab-separated-values"  --data-urlencode query@- < select * where { <http://dbpedia.org/resource/31_June> ?p ?o }
> EOF
>
> Note that Work/runtime doesn't have a datatype and the labels don't have a
> language tag even though https://www.w3.org/TR/sparql11-results-csv-tsv/#tsv
> requires them.  As well, IRIs are enclosed in "" instead of <>.
>
> Then try the same query on the web interface at https://dbpedia.org/sparql.
> There the datatypes and languages tags do show up.  However, there are some
> langStrings without language tags there.
>
>
> I'm also running into the same problem with a locally installed Virtuoso open
> source 7.2.5.
>
> peter


HTML-based SPARQL Results doc:

http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+distinct+%3Flabel+lang%28%3Flabel%29+as+%3FlangTag%0D%0A+where+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F31_June%3E+rdfs%3Alabel+%3Flabel+%7D=text%2Fhtm=3

CSV-based SPARQL Results doc:

http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+distinct+%3Flabel+lang%28%3Flabel%29+as+%3FlangTag%0D%0A+where+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2F31_June%3E+rdfs%3Alabel+%3Flabel+%7D=text%2Fcsv=3


I believe that demonstrates the problem re missing lang tags in the CSV
output, right?

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Kingsley Idehen
On 8/22/18 10:24 AM, Peter F. Patel-Schneider wrote:
> I was hoping to be able to get the SPARQL TSV results format in
> https://www.w3.org/TR/sparql11-results-csv-tsv/
>
> I can probably limp along with explicit language tags and datatypes but that's
> a pain to process.
>
> peter

Hi Peter,

Please share a SPARQL Query Results doc URI that illustrates your
problem. Then, if fixable, we can reply in kind with a URI that
demonstrates the fix. 


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Question for querying with a variable as a predicate?

2018-05-31 Thread Kingsley Idehen
On 5/23/18 8:32 PM, Jason Koh wrote:
> Hi,
>
> First I would like to appreciate this community where I am receiving a
> lot of help. 
>
> I have a query would like to get answers but a variable predicate.
>
> The dataset is:
> ```
> # Insert Triples
> sparql
>
> prefix owl: <http://www.w3.org/2002/07/owl#>
> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> prefix : <http://example.com#>
>
> insert data {
> graph  {
> :PropB a owl:TransitiveProperty.
> :PropB1 rdfs:subPropertyOf :PropB.
> :PropB2 rdfs:subPropertyOf :propB1.
>
> :b a :EntityB.
> :b1 a :EntityB.
> :b2 a :EntityB.
> :aaa a :EntityB;
>      :propB :b;
>      :propB1 :b1;
>      :propB2 :b2.
> }
> };
> ```
> Basically there is "aaa" who is related to "b", "b1", "b2" with
> "PropB", "PropB1", "PropB2". And they have a hierarchy as PropB2 is a
> sub property of PropB1 that is a sub property of PropB.
>
> However, below query does not return anything:
> ```
> sparql
> prefix owl: <http://www.w3.org/2002/07/owl#>
> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> prefix : <http://example.com#>
>
> select ?s ?p ?o from  where {
> ?p rdfs:subPropertyOf* :PropB.
> ?s ?p ?o.
> };
> ```
>
> So I added reasoning rules based on Kingsley's previous comment.
>
> Here's the rule graph:
> ```
> sparql
> prefix owl: <http://www.w3.org/2002/07/owl#>
> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> prefix : <http://example.com#>
>
> insert data {
> graph  {
> :PropB a owl:TransitiveProperty.
> :PropB1 rdfs:subPropertyOf :PropB.
> :PropB2 rdfs:subPropertyOf :propB1.
> }
> };
> ```
>
> Then I inserted the rule with a command:
> ``rdfs_rule_set ('urn:proptest:rules', 'urn:proptest:rules') ;``
>
> Then I enabled the rule in the query:
> ```
> sparql
> DEFINE input:inference 'urn:proptest:rules'
> prefix owl: <http://www.w3.org/2002/07/owl#>
> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> prefix : <http://example.com#>
>
> select ?s ?p ?o from  where {
> ?p rdfs:subPropertyOf* :PropB.
> ?s ?p ?o.
> };
> ```
> But still it does not return anything.
>
> I am not sure if the query is valid in SPARQL or there is something I
> miss in Virtuoso. 
>
> If there is anything that I can learn about, please let me know.
>
> Thank you!
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>


Jason,

Here is a complete script. Please study it.

```

-- Clear Graphs

SPARQL CLEAR GRAPH  ;
SPARQL CLEAR GRAPH   ;



-- Load TBox Data

SPARQL
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <#>

INSERT DATA {
                GRAPH 
                {
                    rdfs:subPropertyOf a owl:TransitiveProperty .
                    rdfs:subClassOf a owl:TransitiveProperty .
                    :rel1 a rdf:Property .
                    :rel2 rdfs:subPropertyOf :rel1 .
                    :rel3 rdfs:subPropertyOf :rel2 .
                   
                }
};

-- Load Abox Data

SPARQL
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <#>

INSERT DATA {
                GRAPH 
                {
                    :this :rel3 :that .
    :this :rel3 :that .
    :that :rel2 :other .
    :other :rel1 :final .
                }
};

SPARQL

SELECT *
FROM  
WHERE {?s ?p ?o} ;

RDFS_RULE_SET ('urn:rdfs:inference:rules', 'urn:rdfs:inference:rules:def') ;

SELECT *
FROM DB.DBA.SYS_RDF_SCHEMA
WHERE RS_NAME = 'urn:rdfs:inference:rules' ;

-- Test Query 1 using Property Path "+" operator

SPARQL

DEFINE input:inference 'urn:rdfs:inference:rules'
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <#>

SELECT DISTINCT :this ?p ?o
FROM 
WHERE {
        :this :rel1+ ?o ;
   ?p ?o2.

} ;


-- Test Query 2 using Property Path "*" operator

SPARQL

DEFINE input:inference 'urn:rdfs:inference:rules'
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <#>

SELECT DISTINCT :this ?o ?p ?o2
FROM 
WHERE {

Re: [Virtuoso-users] A wrong behavior of SPARQL with transitive relationships.

2018-05-12 Thread Kingsley Idehen
On 5/12/18 5:11 PM, Jason Koh wrote:
> From https://www.w3.org/TR/sparql11-property-paths/,
> /elt*/A path of zero or more occurrences of /elt/.
>
>
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>


You have:



You have:

```
sparql
prefix : <http://test.abc#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix owl: <http://www.w3.org/2002/07/owl#>
insert IN GRAPH 
{
  :class1 a owl:Class .
  :class2 a owl:Class .
  :entity0 a :class1.
  :entity1 a :class2.
  :entity2 a :class2.
  :entity0 :relation1 :entity1.
  :entity0 :relation1 :entity2.
};
```

Where are your rdfs:subClassOf relations?

Implies it should have been:

```
sparql
prefix : <http://test.abc#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix owl: <http://www.w3.org/2002/07/owl#>
insert IN GRAPH 
{
  :class1 a owl:Class .
  :class2 a owl:Class .
## Note relation added here ##
  :class2 rdfs:subClassOf :class1 .
  :entity0 a :class1.
  :entity1 a :class2.
  :entity2 a :class2.
  :entity0 :relation1 :entity1.
  :entity0 :relation1 :entity2.
};
```

Kingsley

>
> On Sat, May 12, 2018 at 2:10 PM, Jason Koh <jb...@eng.ucsd.edu
> <mailto:jb...@eng.ucsd.edu>> wrote:
>
> Hi Kingsley,
>
> I put * path modifier, which should also match no subClassOf
> relationship pattern in my understanding.
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>
>
> On Sat, May 12, 2018 at 1:57 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 5/11/18 4:56 PM, Jason Koh wrote:
>> Hi,
>>
>> I am using Virtuoso opensource v7.2.4. I found that SPARQLs
>> with transitive relationships return partial results. Could
>> you confirm this behavior? Here are the reproducing ISQL queries.
>>
>> - Data insertion:
>>
>> ```
>> sparql
>> prefix : <http://test.abc#>
>> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#>>
>> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#
>> <http://www.w3.org/2000/01/rdf-schema#>>
>> prefix owl: <http://www.w3.org/2002/07/owl#
>> <http://www.w3.org/2002/07/owl#>>
>> insert IN GRAPH 
>> {
>>   :class1 a owl:Class .
>>   :class2 a owl:Class .
>>   :entity0 a :class1.
>>   :entity1 a :class2.
>>   :entity2 a :class2.
>>   :entity0 :relation1 :entity1.
>>   :entity0 :relation1 :entity2.
>> };
>> ```
>>
>> - Verification of the data
>>
>> ```
>> sparql
>> select ?s ?p ?o from  where {?s ?p ?o .};
>> ```
>>
>> - The problem query
>> ```
>> sparql
>> prefix : <http://test.abc>
>> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#
>> <http://www.w3.org/2000/01/rdf-schema#>>
>> select ?s ?o where {
>>   #?o a/rdfs:subClassOf* :class2. # Only returns a tuple. I
>> think incorrect.
>>   ?o a :class2. # returns all the tuples. I think correct.
>>   ?s :relation1 ?o.
>> };
>> ```
>>
>> If I run the above query, it only returns one pair of ?s and
>> ?o instead of two pairs of (entity0, entity1) and (entity0,
>> entity1). If I comment out the transitive line and uncomment
>> the second line, it returns the correct result with the two
>> pairs. I believe those two queries should return the same result.
>>
>> Is this a bug or do I misunderstand something in the SPARQL?
>>
>> Thank you!
>>
>>
>>
>> With regards,
>> Jason Koh
>> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>
>>
>
> You have:
>
> ```
> sparql
> prefix : <http://test.abc#>
> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#>>
> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#
> <http://www.w3.org/2000/01/rdf-schema#>>
>   

Re: [Virtuoso-users] Inference support?

2018-02-27 Thread Kingsley Idehen
On 2/23/18 7:45 PM, Jason Koh wrote:
> Hi Kingsley,
>
> I did the same thing for my schema but it didn't work, I will debug it
> more.
>
> btw, what does p_score_init (); do? I receive when I run it:
> ```
> Error 42001: [Virtuoso Driver][Virtuoso Server]SR185: Undefined
> procedure DB.DBA.p_score_init.
> at line 5 of Top-Level:
> ```
>
> I use Virtuoso 7.2.4.2.
>
> Thanks!
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>

Oops, that was a cut and paste error. That procedure isn't relevant to
this kind of built-in reasoning and inference.


>
> On Fri, Feb 23, 2018 at 1:56 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 2/22/18 10:33 PM, Jason Koh wrote:
>> Just to provide my use case,
>>
>> I presumed if there is a graph like
>>
>> ```turtle
>> ex:a rdf:type sch:Class1 .
>> sch:Class1 owl:equivalentClass sch:Class2 .
>> ```
>> . a query like this should work
>> ```sparql
>> select ?s where {
>> ?s rdf:type sch:Class2 .
>> }
>> ```
>>
>>

Yes, if you have mapped a built-in inference rule to the named graph
that contains you owl:equivalenClass statements.

As per my example, map the rule to a graph containing
owl:equivalentClass statements, and then reference rule using pragma in
your sparql query, to invoke built-in reasoning and inference context.

In my example:

Graph IRI:
 
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>


Rule Mapping to Named Graph:

rdfs_rule_set ('urn:equivalent:class:inference:rules:demo:2018:16:45',
'http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>')

Invocation Pragma usage example :
DEFINE input:inference
'urn:equivalent:class:inference:rules:demo:2018:16:45'

What's missing from my initial response is that you should also load
owl:ontology into your named graph, so in my case I would:
SPARQL APPEND <http://www.w3.org/2002/07/owl#> TO
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>>
.

I didn't state that earlier because my named graph
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>>
also contains triples from <http://www.w3.org/2002/07/owl#> that
describe the nature of owl:equivalentClass relations. That's the problem
you are having, following my initial response verbatim :)

Kingsley
>
>> On Thu, Feb 22, 2018 at 5:33 PM, Jason Koh <jb...@eng.ucsd.edu
>> <mailto:jb...@eng.ucsd.edu>> wrote:
>>
>> Hi,
>>
>> I would like to exploit OWL/RDFS inferences like
>> here: 
>> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSPARQLReasoningTutorial#Step
>> 
>> <https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSPARQLReasoningTutorial#Step>
>> 6.: SPARQL Inference Queries
>>
>> 1. However, I can't find the "define rules" for
>> owl:equivalentClass as mentioned
>> here: 
>> http://docs.openlinksw.com/virtuoso/virtuosotipsandtricksrdfschowlinfrl/
>> 
>> <http://docs.openlinksw.com/virtuoso/virtuosotipsandtricksrdfschowlinfrl/>.
>>
>> What is the exact keyword to use owl:equivalentClass like
>> ``DEFINE input:same-as "yes"``?
>>
>>
>> 2. And if I use inference instead of transitive search like
>> ``rel:ancestorOf+``, is it faster?
>>
>> Thank you!
>>
>>
>> With regards,
>> Jason Koh
>> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>
>>
> Steps:
>
> SQL> sparql define get:soft "no-sponge" load
> 
> <http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>
> 
> <http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>
> ;
>
> Done. -- 6146 msec.
> SQL> rdfs_rule_set
> ('urn:equivalent:class:inference:rules:demo:2018:16:45',
> 

Re: [Virtuoso-users] RDF4J's SAIL support? (or direct SHACL?)

2018-02-26 Thread Kingsley Idehen
On 2/23/18 7:56 PM, Jason Koh wrote:
> Hi there,
>
> RDF4J SAIL is pushing a charming feature supporting SHACL, but I found
> that SAILRepository is incompatible with
> Virtuoso: https://groups.google.com/forum/#!topic/rdf4j-users/TcGqG3915jc
> <https://groups.google.com/forum/#%21topic/rdf4j-users/TcGqG3915jc>
>
> Is there any plan to update Virtuoso-RDF4J to include SAIL? Otherwise,
> is there any plan for direct support of SHACL?
>
> Thank you!
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>

See this post regarding Custom Reasoning and Inference re. RDF4j.
As for SHACL, we are going to tweak our SPIN-vocabulary based reasoning
to accommodate terms from SHACL-vocabulary.

Note, Custom Reasoning & Inference is a commercial edition feature. You
can obtain this edition on a Free Evaluation basis.


Kingsley
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Inference support?

2018-02-23 Thread Kingsley Idehen
On 2/22/18 10:33 PM, Jason Koh wrote:
> Just to provide my use case,
>
> I presumed if there is a graph like
>
> ```turtle
> ex:a rdf:type sch:Class1 .
> sch:Class1 owl:equivalentClass sch:Class2 .
> ```
> . a query like this should work
> ```sparql
> select ?s where {
> ?s rdf:type sch:Class2 .
> }
> ```
>
> Thanks!
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>
>
> On Thu, Feb 22, 2018 at 5:33 PM, Jason Koh <jb...@eng.ucsd.edu
> <mailto:jb...@eng.ucsd.edu>> wrote:
>
> Hi,
>
> I would like to exploit OWL/RDFS inferences like
> here: 
> https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSPARQLReasoningTutorial#Step
> 
> <https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSPARQLReasoningTutorial#Step>
> 6.: SPARQL Inference Queries
>
> 1. However, I can't find the "define rules" for
> owl:equivalentClass as mentioned
> here: 
> http://docs.openlinksw.com/virtuoso/virtuosotipsandtricksrdfschowlinfrl/
> 
> <http://docs.openlinksw.com/virtuoso/virtuosotipsandtricksrdfschowlinfrl/>.
>
> What is the exact keyword to use owl:equivalentClass like ``DEFINE
> input:same-as "yes"``?
>
>
> 2. And if I use inference instead of transitive search like
> ``rel:ancestorOf+``, is it faster?
>
> Thank you!
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>
>
Steps:

SQL> sparql define get:soft "no-sponge" load
<http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl>
;

Done. -- 6146 msec.
SQL> rdfs_rule_set
('urn:equivalent:class:inference:rules:demo:2018:16:45',
'http://www.openlinksw.com/data/turtle/ontology_mappings/schemas_mappings/SchemaOrgToOpenLink.ttl');

Done. -- 182 msec.
SQL> p_score_init ();

Here are links Virtuoso's Reasoning & Inference functionality with live
demo links based on the above

[1]
http://lod.openlinksw.com/describe/?url=http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2FOrganization=1
-- FOAF Organization instances modulo built-in Reasoning & Inference

[2]
http://lod.openlinksw.com/describe/?uri=http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2FOrganization=urn%3Aequivalent%3Aclass%3Ainference%3Arules%3Ademo%3A2018%3A16%3A45
-- Ditto, but with built-in Reasoning & Inference by initializing
inference rule identified by
 .

Links:

[1]
http://kidehen.blogspot.com/2014/02/class-equivalence-based-reasoning.html 
-- Built-In Reasoning & Inference using Class Equivalence Semantics

[2]
https://www.linkedin.com/pulse/simple-sparql-based-query-reasoning-inference-example-idehen/
-- Built-In Reasoning & Inference using British Royal Family
relationship types

[3]
https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen/
-- Custom Reasoning & Inference (leveraging SPARQL as Rules Language via
SPIN Vocabulary terms) a using British Royal Family relationship types

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Query optimization, possible indexing?

2018-01-22 Thread Kingsley Idehen
On 1/22/18 5:11 PM, Jason Koh wrote:
> Hi there,
>
> I am trying to use Virtuoso for metadata of city-scale sensor
> database. (metroinsight.io <http://metroinsight.io>).
>
> I wonder if there is a way to optimize certain SPARQL query pattern. I
> often query this:
> ```sparql
> select ?s where {
>   ?s base:name ex:mySensor1 .
> }
> ```
>
> I could optimize it by caching those with Redis or else, but I wonder
> if I can force indexing "name" properties in Virtuoso. 
>
> Thank you!
>
>
> With regards,
> Jason Koh
> cseweb.ucsd.edu/~jbkoh <http://cseweb.ucsd.edu/%7Ejbkoh>


Have you looked at text indexing in Virtuoso with regards to SPARQL?

[1] http://docs.openlinksw.com/virtuoso/rdfsparqlrulefulltext/ .

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] FYI Re: WebDataCommons releases 38.7 billion quads Microdata, Embedded JSON-LD, RDFa and Microformat data originating from 7.4 million pay-level-domains

2018-01-11 Thread Kingsley Idehen
notate their content.
>
> * *
>
> *Richer Descriptions of Job Postings*
>
> Following the release of the “Google for Jobs” search vertical and the
> more detailed guidance by Google on how to annotate job postings
> (https://developers.google.com/search/docs/data-types/job-posting), we
> see an increase in the number of websites annotating job postings
> (2017: 7,023, 2016: 6,352). In addition, the job posting annotations
> tend to become richer in comparison to the previous years as the
> number of Job Posting related properties adopted by at least 30% of
> the websites containing job offers has increased from 4 (2016) to 7
> (2017). The newly adopted properties are JobPosting/url,
> JobPosting/datePosted, and JobPosting/employmentType.
>
> You can find a more extended analysis concerning specific topics, like
> Job Posting and Product, here
>
> http://webdatacommons.org/structureddata/2017-12/stats/schema_org_subsets.html#extendedanalysis
>
>  
>
> *Download *
>
> The overall size of the November 2017 RDFa, Microdata, Embedded
> JSON-LD and Microformat data sets is 38.7 billion RDF quads. For
> download, we split the data into 8,433 files with a total size of 858 GB.
>
> http://webdatacommons.org/structureddata/2017-12/stats/how_to_get_the_data.html
>
> In addition, we have created for over 40 different schema.org
> <http://schema.org/> classes separate files, including all quads
> extracted from pages, using a specific schema.org class. 
>
> http://webdatacommons.org/structureddata/2017-12/stats/schema_org_subsets.html
>
>  
>
> *Lots of thanks to:* 
>
> + the Common Crawl project for providing their great web crawl and
> thus enabling the WebDataCommons project. 
> + the Any23 project for providing their great library of structured
> data parsers. 
> + Amazon Web Services in Education Grant for supporting WebDataCommons. 
> + the Ministry of Economy, Research and Arts of Baden – Württemberg
> which supported through the ViCE project the extraction and analysis
> of the November 2017 corpus.
>
> *General Information about the WebDataCommons Project*
>
> The WebDataCommons project extracts structured data from the Common
> Crawl, the largest web corpus available to the public, and provides
> the extracted data for public download in order to support researchers
> and companies in exploiting the wealth of information that is
> available on the Web. Beside of the yearly extractions of semantic
> annotations from webpages, the WebDataCommons project also provides
> large hyperlink graphs, the largest public corpus of WebTables, a
> corpus of product data, as well as a collection of hypernyms extracted
> from billions of web pages for public download. General information
> about the WebDataCommons project is found at 
>
> http://webdatacommons.org/
>
>
> Have fun with the new data set. 
>
> Cheers, 
> Anna Primpeli, Robert Meusel and Chris Bizer
>
>  
>

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] Simple Linked Data Deployment Tutorial

2018-01-06 Thread Kingsley Idehen
Happy New Year to everyone!

I would like to open the year by sharing an updated version of an old
post about Linked Data deployment using relative HTTP URIs [1].
Fundamentally, the act of using  hyperlinks to identify the subject,
predicate, and object of RDF sentences, shouldn't be a point of
technical intimidation or confusion regarding the notion of a Semantic
Web of Linked Data.

Links:

[1]
https://medium.com/openlink-software-blog/simple-linked-data-deployment-tutorial-a532e568c82f
-- Simple Linked Data Deployment Tutorial

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] Fixed: Correction: testing SPIN rules in Virtuoso 8

2017-10-10 Thread Kingsley Idehen
On 9/14/17 5:08 PM, Kingsley Idehen wrote:
> On 9/14/17 4:52 PM, Kingsley Idehen wrote:
>> On 9/13/17 10:28 AM, Adam Sanchez wrote:
>>> Hi all,
>>>
>>> I am testing SPIN rules in the demo version of Virtuoso 8 but I have
>>> still no success.
>>> I wrote a simple SPIN rule to compute the area of an instance of a
>>> class Rectangle given its width and its height. In this script you can
>>> see all the queries I used. This script must be executed in the SQL
>>> console of Virtuoso 8.
>>>
>>> https://tinyurl.com/yb359owr
>>>
>>> As you can see here at the bottom,
>>>
>>> http://imageshack.com/a/img923/1182/qG4HmJ.png
>>>
>>> the rule is loaded but it does not work when I run a query
>>>
>>> http://imagizer.imageshack.us/a/img922/7629/it260O.png
>>>
>>> For you reference, I was using this output as reference to see how the
>>> loaded rule must look.
>>>
>>> https://tinyurl.com/ycm3zp6p
>>>
>>> Also, I have read these links so far
>>>
>>> https://medium.com/virtuoso-blog/virtuoso-8-0-creating-a-custom-inference-rules-using-spin-vocabulary-d7a060f859ef
>>> https://www.mail-archive.com/virtuoso-users@lists.sourceforge.net/msg07790.html
>>> https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen
>>> https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419
>>> http://docs.openlinksw.com/virtuoso/udt_overview/
>>>
>>> BTW, in RDF4j works. I do not need to load the rule separately, I just
>>> loaded the full ontology and that's all, the SPIN rule worked. See
>>>
>>> http://imagizer.imageshack.us/a/img924/7717/Q9JYau.png
>>> http://imagizer.imageshack.us/a/img924/9828/4dQPzg.png
>>>
>>>
>>> Any idea?
>>>
>>> Thanks in advance,
>>>
>>> Adam
>> Hi Adam,
>>
>> We don't have a problem with Virtuoso's SPIN Rules handling, once a few
>> errors (I assume typos) in your example are fixed. Here's my rendition
>> of what you shared:
>>
>> -- This a SPARQL script to test SPIN Rules in Virtuoso 8
>> --  It should compute the area of an instance of the class Rectangle
>> given its width and its height.
>> -- This script must be run in the SQL console of Virtuoso
>>
>> --  Additional commands
>>
>> SPARQL CLEAR GRAPH <http://geometry> ;
>> SPARQL CLEAR GRAPH  ;
>> SPARQL DROP SPIN LIBRARY  ;
>>
>> -- create a named graph
>>
>> -- SPARQL CREATE GRAPH <http://geometry> ;
>>
>> SPARQL
>> PREFIX shapes: <http://example.org/shapes#>
>> PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>> PREFIX owl: <http://www.w3.org/2002/07/owl#>
>>
>> WITH <http://geometry>
>> INSERT {
>>         shapes:Rectangle
>>         rdf:type owl:Class .
>>        
>>         shapes:rectangle_1
>>         rdf:type  shapes:Rectangle ;
>>         shapes:height "5" ;
>>         shapes:width  "49" .
>>         shapes:area rdf:type owl:DatatypeProperty .
>>         shapes:height rdf:type owl:DatatypeProperty .
>>         shapes:width rdf:type owl:DatatypeProperty .
>> } ;
>>
>> --  create the rule
>> -- SPARQL CREATE GRAPH  ;
>>
>> SPARQL
>> PREFIX shapes: <http://example.org/shapes#>
>> PREFIX spin:    <http://spinrdf.org/spin#>
>> PREFIX sp: <http://spinrdf.org/sp#>
>> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
>> PREFIX owl: <http://www.w3.org/2002/07/owl#>
>>
>> WITH 
>> INSERT {
>>           shapes:Rectangle
>>         rdf:type  owl:Class;
>>     rdfs:label "Rectangle class";
>>     spin:rule [
>>                    a sp:Construct;
>>    sp:text """ CONSTRUCT { ?this
>> <http://example.org/shapes#area> ?area . }
>>                    WHERE { ?this
>> <http://example.org/shapes#width> ?width .
>>                                           ?this
>> <http://example.org/shapes#height> ?height .
>>                                        BIND ((xsd:float(?height) *
>> xsd:float(?width)) AS ?area) .
>>                                      }
>>                           """
>>   ] .
>> } ;
>>
>> EXEC ('SPARQL ' ||
>> SPARQL

[Virtuoso-users] Correction: testing SPIN rules in Virtuoso 8

2017-09-14 Thread Kingsley Idehen
On 9/14/17 4:52 PM, Kingsley Idehen wrote:
> On 9/13/17 10:28 AM, Adam Sanchez wrote:
>> Hi all,
>>
>> I am testing SPIN rules in the demo version of Virtuoso 8 but I have
>> still no success.
>> I wrote a simple SPIN rule to compute the area of an instance of a
>> class Rectangle given its width and its height. In this script you can
>> see all the queries I used. This script must be executed in the SQL
>> console of Virtuoso 8.
>>
>> https://tinyurl.com/yb359owr
>>
>> As you can see here at the bottom,
>>
>> http://imageshack.com/a/img923/1182/qG4HmJ.png
>>
>> the rule is loaded but it does not work when I run a query
>>
>> http://imagizer.imageshack.us/a/img922/7629/it260O.png
>>
>> For you reference, I was using this output as reference to see how the
>> loaded rule must look.
>>
>> https://tinyurl.com/ycm3zp6p
>>
>> Also, I have read these links so far
>>
>> https://medium.com/virtuoso-blog/virtuoso-8-0-creating-a-custom-inference-rules-using-spin-vocabulary-d7a060f859ef
>> https://www.mail-archive.com/virtuoso-users@lists.sourceforge.net/msg07790.html
>> https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen
>> https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419
>> http://docs.openlinksw.com/virtuoso/udt_overview/
>>
>> BTW, in RDF4j works. I do not need to load the rule separately, I just
>> loaded the full ontology and that's all, the SPIN rule worked. See
>>
>> http://imagizer.imageshack.us/a/img924/7717/Q9JYau.png
>> http://imagizer.imageshack.us/a/img924/9828/4dQPzg.png
>>
>>
>> Any idea?
>>
>> Thanks in advance,
>>
>> Adam
> Hi Adam,
>
> We don't have a problem with Virtuoso's SPIN Rules handling, once a few
> errors (I assume typos) in your example are fixed. Here's my rendition
> of what you shared:
>
> -- This a SPARQL script to test SPIN Rules in Virtuoso 8
> --  It should compute the area of an instance of the class Rectangle
> given its width and its height.
> -- This script must be run in the SQL console of Virtuoso
>
> --  Additional commands
>
> SPARQL CLEAR GRAPH <http://geometry> ;
> SPARQL CLEAR GRAPH  ;
> SPARQL DROP SPIN LIBRARY  ;
>
> -- create a named graph
>
> -- SPARQL CREATE GRAPH <http://geometry> ;
>
> SPARQL
> PREFIX shapes: <http://example.org/shapes#>
> PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
>
> WITH <http://geometry>
> INSERT {
>         shapes:Rectangle
>         rdf:type owl:Class .
>        
>         shapes:rectangle_1
>         rdf:type  shapes:Rectangle ;
>         shapes:height "5" ;
>         shapes:width  "49" .
>         shapes:area rdf:type owl:DatatypeProperty .
>         shapes:height rdf:type owl:DatatypeProperty .
>         shapes:width rdf:type owl:DatatypeProperty .
> } ;
>
> --  create the rule
> -- SPARQL CREATE GRAPH  ;
>
> SPARQL
> PREFIX shapes: <http://example.org/shapes#>
> PREFIX spin:    <http://spinrdf.org/spin#>
> PREFIX sp: <http://spinrdf.org/sp#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
>
> WITH 
> INSERT {
>           shapes:Rectangle
>         rdf:type  owl:Class;
>     rdfs:label "Rectangle class";
>     spin:rule [
>                    a sp:Construct;
>    sp:text """ CONSTRUCT { ?this
> <http://example.org/shapes#area> ?area . }
>                    WHERE { ?this
> <http://example.org/shapes#width> ?width .
>                                           ?this
> <http://example.org/shapes#height> ?height .
>                                        BIND ((xsd:float(?height) *
> xsd:float(?width)) AS ?area) .
>                                      }
>                           """
>   ] .
> } ;
>
> EXEC ('SPARQL ' ||
> SPARQL_SPIN_GRAPH_TO_DEFSPIN('urn:spin:rule:geometry:lib'));
>
> --  run a sparql query to test the spin rule
>
> SPARQL
> DEFINE input:macro-lib 
> PREFIX shapes: <http://example.org/shapes#>
>
> SELECT *
> WHERE
>     {
>         ?s shapes:width ?w.
>         ?s shapes:height ?h.
>         OPTIONAL { ?s shapes:area  ?area }.
>     } ;
>
>
> All you have to do is copy, paste, and then run the script above  via
> the HTM-based Admin UI (Conductor) or iSQL co

Re: [Virtuoso-users] Define a built-in SPIN function

2017-09-14 Thread Kingsley Idehen
On 9/13/17 10:14 AM, Angelo Santoro wrote:
> Hello,
>
> I'm developing a project in which I use Virtuoso Open Source as
> storage. I'm pretty new to Virtuoso, so I would like to know if it's
> possible to write a SPIN function, load it to the triple store, and
> call it in another SPARQL query.
>
> Thanks.
>
> Angelo
>
Hi Angelo,

Not with the Open Source Edition of Virtuoso.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] testing SPIN rules in Virtuoso 8

2017-09-14 Thread Kingsley Idehen
g & Inference
Context per SPARQL Query.

Links:

[1]
http://linkeddata.uriburner.com/sparql?default-graph-uri==DEFINE+input%3Amacro-lib+%3Curn%3Aspin%3Arule%3Ageometry%3Alib%3E%0D%0APREFIX+shapes%3A+%3Chttp%3A%2F%2Fexample.org%2Fshapes%23%3E%0D%0A%0D%0ASELECT+*%0D%0AWHERE%0D%0A%7B%0D%0A%3Fs+shapes%3Awidth+%3Fw.%0D%0A++++%3Fs+shapes%3Aheight+%3Fh.%0D%0AOPTIONAL+%7B+%3Fs+shapes%3Aarea++%3Farea+%7D.%0D%0A%7D==text%2Fhtml_redir_for_subjs=121_redir_for_hrefs==3000
-- SPARQL Query Results page where solution is constructed with Custom
Reasoning & Inference Context enabled.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] client javascript

2017-07-06 Thread Kingsley Idehen
On 7/6/17 1:31 PM, Carlo Capelli wrote:
> Hi Kingsley
>
> Thanks for your answer, sorry for the late reply...
>
> From the (verbose and very sparse!) information I've collected so far,
> seems I have to send my credentials to perform basic authentication
> with the server.
>
> So, inspecting - with help from the browser developer tools - the
> default interface protocol (the HTTP form with the fields
> httpd_password,httpd_username, presented upfront the URL request,
> let's say https://www.example.com/sparql),
> I've managed to issue a correct call - using php curl, where I can
> trust better the transmission.
> Alas, the return payload value is encrypted... still more problems,
> and low level details to 'guess'...
>
> This seems way too complicated for such a simple use case.
> I wonder what could be the reason to keep the details of the client so
> difficult to find.
> Isn't authenticated access via HTTPS almost a necessity these days?

Hi Carlo,

To cut a long story short, if you want to use TLS to authenticate you
need to use WebID+TLS+Delegation protocol. You can also use Digest
Authentication via /sparql-auth endpoint.

The only requirement is CORs enabling the SPARQL endpoint.

[1] https://enable-cors.org/server_virtuoso.html
[2]
http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksCORsEnableSPARQLURLs
[3] http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksGuideCORSSetup

Kingsley
>
> 2017-07-03 15:41 GMT+02:00 Kingsley Idehen <kide...@openlinksw.com
> <mailto:kide...@openlinksw.com>>:
>
> On 7/3/17 5:16 AM, Carlo Capelli wrote:
>> Hi All
>>
>> I had no luck searching for a javascript client with capability
>> to connect to a secured endpoint,
>> and nobody could help me on stackoverflow (
>> https://stackoverflow.com/q/44871467/874024
>> <https://stackoverflow.com/q/44871467/874024> ).
>>
>> Is there some open source code sample I could start from ?
>> If I will solve this, my plan is to contribute to this client (
>> https://www.npmjs.com/package/virtuoso-sparql-client
>> <https://www.npmjs.com/package/virtuoso-sparql-client> )
>>
>> Best regards, Carlo
>
> CORs-enable your endpoint.
>
>
> Now the endpoint is CORS enabled. But it didn't solved my problem.
>
>
> DBpedia's endpoint (a Virtuoso instance) is CORs enabled, thus you
> should verify you work against that.
>
>
> Not sure I follow, I'm using a module (virtuoso-sparql-client
> <https://www.npmjs.com/package/virtuoso-sparql-client>) that for sure
> allows to fetch public data from dbpedia...
>
> Best regards, Carlo
>
>
> Kingsley
>>
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>> ___
>>     Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> <mailto:Virtuoso-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>> <https://lists.sourceforge.net/lists/listinfo/virtuoso-users>
>
>
> -- 
> Regards,
>
> Kingsley Idehen 
> Founder & CEO 
> OpenLink Software   (Home Page: http://www.openlinksw.com)
>
> Weblogs (Blogs):
> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
> <http://www.openlinksw.com/blog/%7Ekidehen/>
> Blogspot Blog: http://kidehen.blogspot.com
> Medium Blog: https://medium.com/@kidehen
>
> Profile Pages:
> Pinterest: https://www.pinterest.com/kidehen/
> <https://www.pinterest.com/kidehen/>
> Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
> <https://www.quora.com/profile/Kingsley-Uyi-Idehen>
> Twitter: https://twitter.com/kidehen
> Google+: https://plus.google.com/+KingsleyIdehen/about
> <https://plus.google.com/+KingsleyIdehen/about>
> LinkedIn: http://www.linkedin.com/in/kidehen
> <http://www.linkedin.com/in/kidehen>
>
> Web Identities (WebID):
> Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
> <http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i>
> : 
> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
> 
> <http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this>
>
>
> 
> --

Re: [Virtuoso-users] client javascript

2017-07-03 Thread Kingsley Idehen
On 7/3/17 5:16 AM, Carlo Capelli wrote:
> Hi All
>
> I had no luck searching for a javascript client with capability to
> connect to a secured endpoint,
> and nobody could help me on stackoverflow (
> https://stackoverflow.com/q/44871467/874024 ).
>
> Is there some open source code sample I could start from ?
> If I will solve this, my plan is to contribute to this client (
> https://www.npmjs.com/package/virtuoso-sparql-client )
>
> Best regards, Carlo

CORs-enable your endpoint.

DBpedia's endpoint (a Virtuoso instance) is CORs enabled, thus you
should verify you work against that.

Kingsley
>
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] Virtuoso INI files Spreadsheet

2017-06-30 Thread Kingsley Idehen
All,

If you have a sizable Virtuoso instance (i.e., 2 Billion+ Triples), 
please notify me (by way of email reply) about your desire to add said instance 
configuration to the spreadsheet at:
https://docs.google.com/spreadsheets/d/1-stlTC_WJmMU3xA_NxA1tSLHw6_sbpjff-5OITtrbFw/edit#gid=812792186

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Disabling logging & transactions with DB.DBA.TTLP_MT

2017-06-27 Thread Kingsley Idehen
On 6/27/17 4:00 PM, Frederick Giasson wrote:
> Hi,
>
> Quick question regarding DB.DBA.TTLP_MT. I run the following command:
>
> DB.DBA.TTLP_MT (file_to_string_output ('some.n3'), '',
> 'http://foo/bar/' 0, 0, 4, 0);
>
> "some.n3" is about 30G big with a few hundred million triples.
>
> I thought that this would disable transactions and logging, but it
> doesn't look like that. If I import that N3 file in an empty database,
> then I can eventually see "virtuoso.trx" growing (into the G in size)
> which suggest me that transactions are **not** disabled.
>
> I also tried "log_enable(3, 1)" and I am getting the same behavior.
>
>  am sending these queries via "isql" and I am using Virtuoso version
> 7.2.4.2
>
> Thanks!
>
> Fred


Fred,

Please try log_enable(2,1).  Or just run the bulk loader .

Links:

1. http://docs.openlinksw.com/virtuoso/fn_log_enable/

2. http://vos.openlinksw.com/owiki/wiki/VOS/VirtBulkRDFLoader

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso Transitive Query Error

2017-05-08 Thread Kingsley Idehen
On 5/8/17 1:13 PM, S.M.Shamimul Hasan wrote:
> Dear Kingsley Idehen,
>
> Thank you very much for your reply. I have tried the solution with
> sub-query that you provided me. However, it is giving me following
> error. Could you please let me know how to fix it?
>
> Virtuoso 37000 Error SP031: SPARQL compiler: Variable 't' is used in
> the query result set but not assigned
>
> Thanks a lot.
>
> Sincerely,
> S.M.Shamimul Hasan
>
>
> On Sun, May 7, 2017 at 12:59 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 5/5/17 5:29 PM, S.M.Shamimul Hasan wrote:
> > Hello,
> >
> > I am trying to run the following query on the Virtuoso SPARQL
> endpoint
> > to calculate the path between nodes. However, it is giving me
> > following error. Could you please let me know how to fix it? BTW the
> > query works fine for the Jena TDB. However, I want to use Virtuoso
> > triplestore because it contains all of my datasets.
> >
> > Query:
> > -
> > PREFIX fused:<http://test.edu/vocab/>
> >
> > select ?super ?sub (count(?mid) as ?distance) from
> > <http://test.edu/example/replicate9/
> <http://test.edu/example/replicate9/>> {
> >   ?mid fused:getInfectedBy* ?super.
> >   ?sub fused:getInfectedBy+ ?mid.
> > }
> > group by ?super ?sub
> > order by ?super ?sub
> >
> > Error:
> > 
> > Virtuoso 37000 Error TR...: Query contains a transitive derived
> table
> > but neither end of it is bound by equality to other columns or
> parameters.
> >
> > Thanks a lot.
> >
> > Sincerely,
> > S.M.Shamimul Hasan
>
> ## Fails (correctly so) with Transitivity error; Virtuoso 37000 Error
> TR...: Query contains a transitive derived table but neither end of it
> is bound
>
> PREFIX fused:<http://test.edu/vocab/>
>
> SELECT ?super ?sub (count(?mid) as ?distance)
> WHERE {
>   ?mid fused:getInfectedBy* ?super.
>   ?sub fused:getInfectedBy+ ?mid.
>   }
> GROUP BY ?super ?sub
> ORDER BY ?super ?sub
> LIMIT 1
>
>
> ## Workaround using a sub-query
>
> PREFIX fused: <http://test.edu/vocab/>
>
> SELECT SAMPLE(?t) ?super ?sub (count(?mid) as ?distance)
> WHERE {
> { SELECT distinct ?super
>   WHERE { ?x fused:getInfectedBy ?super }
> }
>
>?mid fused:getInfectedBy* ?super.
>?sub fused:getInfectedBy+ ?mid.
>}
> GROUP BY ?super ?sub
> ORDER BY ?super ?sub
> LIMIT 1
>

See:

http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=PREFIX+fused%3A+%3Chttp%3A%2F%2Ftest.edu%2Fvocab%2F%3E%0D%0A%0D%0ASELECT+SAMPLE%28%3Ft%29+%3Fsuper+%3Fsub+%28count%28%3Fmid%29+as+%3Fdistance%29%0D%0AWHERE+%7B%0D%0A%7B+SELECT+distinct+%3Fsuper%0D%0A++WHERE+%7B+%3Fx+fused%3AgetInfectedBy+%3Fsuper+%7D%0D%0A%7D%0D%0A%0D%0A+++%3Fmid+fused%3AgetInfectedBy*+%3Fsuper.%0D%0A+++%3Fsub+fused%3AgetInfectedBy%2B+%3Fmid.%0D%0A+++%7D%0D%0AGROUP+BY+%3Fsuper+%3Fsub%0D%0AORDER+BY+%3Fsuper+%3Fsub%0D%0ALIMIT+1=text%2Fhtml_redir_for_subjs=121_redir_for_hrefs==3
-- empty solution as would be expected.


Unhatch " Strict checking of void variables" check-box in the SPARQL
Query Editor.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso Transitive Query Error

2017-05-07 Thread Kingsley Idehen
On 5/5/17 5:29 PM, S.M.Shamimul Hasan wrote:
> Hello,
>
> I am trying to run the following query on the Virtuoso SPARQL endpoint
> to calculate the path between nodes. However, it is giving me
> following error. Could you please let me know how to fix it? BTW the
> query works fine for the Jena TDB. However, I want to use Virtuoso
> triplestore because it contains all of my datasets.
>
> Query:
> -
> PREFIX fused:<http://test.edu/vocab/>
>
> select ?super ?sub (count(?mid) as ?distance) from
> <http://test.edu/example/replicate9/> {
>   ?mid fused:getInfectedBy* ?super.
>   ?sub fused:getInfectedBy+ ?mid.
> }
> group by ?super ?sub
> order by ?super ?sub
>
> Error:
> 
> Virtuoso 37000 Error TR...: Query contains a transitive derived table
> but neither end of it is bound by equality to other columns or parameters.
>
> Thanks a lot.
>
> Sincerely,
> S.M.Shamimul Hasan

## Fails (correctly so) with Transitivity error; Virtuoso 37000 Error
TR...: Query contains a transitive derived table but neither end of it
is bound

PREFIX fused:<http://test.edu/vocab/>

SELECT ?super ?sub (count(?mid) as ?distance) 
WHERE {
  ?mid fused:getInfectedBy* ?super.
  ?sub fused:getInfectedBy+ ?mid.
  }
GROUP BY ?super ?sub
ORDER BY ?super ?sub
LIMIT 1


## Workaround using a sub-query

PREFIX fused: <http://test.edu/vocab/>

SELECT SAMPLE(?t) ?super ?sub (count(?mid) as ?distance) 
WHERE {
{ SELECT distinct ?super
  WHERE { ?x fused:getInfectedBy ?super }
}
   
   ?mid fused:getInfectedBy* ?super.
   ?sub fused:getInfectedBy+ ?mid.
   }
GROUP BY ?super ?sub
ORDER BY ?super ?sub
LIMIT 1


You can copy and paste each to the SPARQL endpoint at
http://linkeddata.uriburner.com/sparql or even
http://dbpedia.org/sparql. In either case, the second query will return
an empty solution as solution proof.


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] utilizing domain ruleset in virtuoso?

2017-05-02 Thread Kingsley Idehen
On 5/2/17 1:00 AM, 손태모 wrote:
> Dear all, 
>
> i am wondering that can i use domain rule set in virtuoso inference ? 
> i have searched virtuoso documents about rule inference . 
> but unfortunately , there are only rdfs semantics level inference such
> as subClassOf, subPropertyOf, Transitive rule etc. and i have not
> found any topic about inference triple using user defined domain rule
> set. 
>
> can i define domain rule and use it in virtuoso ? 
>
> thanks in advance.

Custom Inference Rules (e.g., using SPIN Vocabulary) is a feature of
Virtuoso 8.0 which will be out in beta this week [1].

[1]
https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen
-- Virtuoso 8.0 Custom Inference Rules & Examples


Kingsley
>
>
> 
> Sohn, Taemo
> LiST Co., Ltd.
> 9th Floor, Yangyong bldg.,
> 3, Beodeunaru-ro 19-gil, Yeongdeungpo-gu, Seoul, Korea
>
> Tel +82 2 2632 5133
> Fax +82 2 2632 5134
> Mobile +82 10 2647 0108
> 
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] SPARQL endpoint Update permissions

2017-04-04 Thread Kingsley Idehen
On 4/4/17 9:54 AM, Iker Esnaola wrote:
>
> Hello,
>
>  
>
> I am trying to update my Graph by means of the SPARQL endpoint and the
> following query:
>
>  
>
> DELETE {?s rdf:type "A "}
> INSERT {?s rdf:type "B" }
> from 
> WHERE { ?s rdf:type "A"}
>
>  
>
> I am getting the following error: Virtuoso 42000 Error SR186:SECURITY:
> No permission to execute procedure
> DB.DBA.SPARQL_MODIFY_BY_DICT_CONTENTS with user ID 107, group ID 107
>
>  
>
> After giving SPARQL_UPDATE permissions to the “SPARQL” user, there is
> no such a problem and I am able to perform the query.
>
>  
>
> However, my SPARQL endpoint is public so this is not a good practice.
>
>  
>
> I have been looking for information in this matter but I didn’t find
> anything decisive. Is there any possibility of login in the SPARQL
> endpoint? I am thinking of some way of enabling certain users to
> update the content (e.g. administrators) while leaving the rest of the
> users with only query permissions.
>
>  
>
> Thanks in advance,
>

To cut a long story short, you will need attrtibute-based acls (ABAC)
which are part of the commercial edition of Virtuoso [1]. If you don't
want to exploit that degree of sophistication you can try role-based
acls (RBAC) via our Graph Security feature.


[1]
https://medium.com/virtuoso-blog/web-logic-sentences-and-the-magic-of-being-you-e2a719d01f73
-- End to End Example re. Attributed-based access control

[2]
https://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtRDFGraphsSecurity
-- Role-based Graph Security

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Mapping XML files to RDF graph using Virtuoso?

2017-03-17 Thread Kingsley Idehen
On 3/17/17 11:49 AM, Eng.Bassam wrote:
>
> Thank Kingsley
> Could you please support me more information about 2 fundementals that
> you has said ???
> may be short example :) ??
>
> 1. I think first create an ontology data model for my native XML files.
>

You have to have an understanding of the entity relationship types in
the XML doc. An over / under Tree has no information by way of its
structure.
>
> 2. The second step is create a data model mapping between my XML file
> and an ontology data model which created in the first step "as R2RML
> does  RDB2RDF mapping".
>
My comment above implies the first step must be completed i.e., what
exactly does the XML document content attempt to represent? This hurdle
would apply if it were a JSON, CSV, or any other kind of doc.

Kingsley
>
> Thanks again.
>
>
> On Mar 17, 2017 5:05 PM, "Kingsley Idehen" <kide...@openlinksw.com
> <mailto:kide...@openlinksw.com>> wrote:
>
> On 3/17/17 10:05 AM, Eng.Bassam wrote:
>> Hi 
>> I transformed an SQL database to RDF graph using an R2RML in
>> a commercial edition of Virtuoso 7.2.
>> Now I have 5000 *standard XML files*, Can I do a mapping to RDF
>> Graph "same as R2RML" for those XML files using a Virtuoso???
>>
>> Thanks.
>>
>
> Only if you can turn the content of the XML files into RDF which
> requires:
>
> 1. Ontological understanding of whats represented in the XML files
>
> 2. Mechanism for using said understanding to transform that
> content into RDF -- e.g., deriving an RDF/XML doc.
>
> There might be an RML processor for achieving the above.
> Naturally, you can also use the Virtuoso Cartridge system to
> achieve the same goal.
>
> Links:
>
>
> 1.
> 
> https://virtuoso.openlinksw.com/whitepapers/sponger%20cartridge%20programmers%20guide%20rdf%20middleware.html
> 
> <https://virtuoso.openlinksw.com/whitepapers/sponger%20cartridge%20programmers%20guide%20rdf%20middleware.html>
>
> 2.
> 
> https://virtuoso.openlinksw.com/whitepapers/sponger%20cartridge%20programmers%20guide%20rdf%20middleware.html#mozTocId139
> 
> <https://virtuoso.openlinksw.com/whitepapers/sponger%20cartridge%20programmers%20guide%20rdf%20middleware.html#mozTocId139>
>  
> -- XSLT part of Cartridge Creation
>
> -- 
> Regards,
>
> Kingsley Idehen 
> Founder & CEO 
> OpenLink Software   (Home Page: http://www.openlinksw.com)
>
> Weblogs (Blogs):
> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
> <http://www.openlinksw.com/blog/%7Ekidehen/>
> Blogspot Blog: http://kidehen.blogspot.com
> Medium Blog: https://medium.com/@kidehen
>
> Profile Pages:
> Pinterest: https://www.pinterest.com/kidehen/
> <https://www.pinterest.com/kidehen/>
> Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
> <https://www.quora.com/profile/Kingsley-Uyi-Idehen>
> Twitter: https://twitter.com/kidehen
> Google+: https://plus.google.com/+KingsleyIdehen/about
> <https://plus.google.com/+KingsleyIdehen/about>
> LinkedIn: http://www.linkedin.com/in/kidehen
> <http://www.linkedin.com/in/kidehen>
>
> Web Identities (WebID):
> Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
> <http://kingsley.idehen.net/dataspace/person/kidehen#this>
> : 
> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
> 
> <http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___ Virtuoso-users
> mailing list Virtuoso-users@lists.sourceforge.net
> <mailto:Virtuoso-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> <https://lists.sourceforge.net/lists/listinfo/virtuoso-users> 
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home 

Re: [Virtuoso-users] Mapping XML files to RDF graph using Virtuoso?

2017-03-17 Thread Kingsley Idehen
On 3/17/17 10:05 AM, Eng.Bassam wrote:
> Hi 
> I transformed an SQL database to RDF graph using an R2RML in
> a commercial edition of Virtuoso 7.2.
> Now I have 5000 *standard XML files*, Can I do a mapping to RDF Graph
> "same as R2RML" for those XML files using a Virtuoso???
>
> Thanks.
>

Only if you can turn the content of the XML files into RDF which requires:

1. Ontological understanding of whats represented in the XML files

2. Mechanism for using said understanding to transform that content into
RDF -- e.g., deriving an RDF/XML doc.

There might be an RML processor for achieving the above. Naturally, you
can also use the Virtuoso Cartridge system to achieve the same goal.

Links:


1.
https://virtuoso.openlinksw.com/whitepapers/sponger%20cartridge%20programmers%20guide%20rdf%20middleware.html

2.
https://virtuoso.openlinksw.com/whitepapers/sponger%20cartridge%20programmers%20guide%20rdf%20middleware.html#mozTocId139
 
-- XSLT part of Cartridge Creation

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Federated queries and time zones.

2017-03-10 Thread Kingsley Idehen
On 3/10/17 7:49 AM, Pasquale Di Donato wrote:
> Hi List,
>
> I'm trying a federated query with some filters on date and getting
> weird results.
> Does the time zone has an impact on this kind of queries.
> In my case the two services have 2 different time zones: GMT+0 and GMT+1.
>
> Any feedback will be appreciated. Thanks
> Pasquale

Please share a SPARQL Query or Results page URI that demonstrates the
problem. That simplifies the issue analysis process.


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Virtuoso inference capabilities

2017-02-06 Thread Kingsley Idehen
On 2/6/17 9:36 AM, Iker Esnaola wrote:
>
> Hello,
>
>  
>
> I have my RDF triples in a Virtuoso Open Source version 07.20.3217.
> When querying my data, I would like to have some inferences already
> done (so that I am querying inferred stuff).
>
>  
>
> I have read some documentation regarding this matter, and I reach this
> one (http://docs.openlinksw.com/virtuoso/rdfsparqlrulemake/)  where as
> far as I understood, there are some rules you can define in order to
> make these inference.
>
>  
>
> Did I understand it correctly? Does that mean that SWRL rules are not
> supported in Virtuoso? Could SPARQL Update used instead?
>
>  
>
> Thanks in advance,
>
> Iker
>
>  
>

As with most things related to RDF, we need some conceptual clarity with
regards to what things are and how they are implemented in Virtuoso.

Inference Rules:

A set of rules defined using a domain specific language (e.g., swirl,
rif, spin, etc.) that determine the evaluation relationship types
(relations) when producing a query solution.

Virtuoso & Inference Rules:

Current editions of Virtuoso support canned inference rules that support
relationship types described by RDFS and OWL ontologies [1].

The commercial edition of Virtuoso 8.0 (next release) will add support
for custom inference rules using either of the following:

[1] SPIN vocabulary -- which boils down to using SPARQL as a Custom
Inference Rules Language

[2] Virtuoso Macro Language -- same thing, but at a lower level while
still being based on SPARQL.

Links:

[1] 
https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419#.9qli8vv5r
-- Canned Inference Rules Example Post

[2] 
https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen
-- Custom Inference Rules Example Post

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] loaded data doesn't bind to graph specified

2017-01-26 Thread Kingsley Idehen
On 1/26/17 4:32 PM, Roland Cornelissen wrote:
> That works fine, as stated before; when the graph is specified in the
> sparql query the results are as expected.
>
> But take f.i. a resource out of these results and ask a DESCRIBE the
> foaf depiction triple is not presented for the resource:
>
> http://nl.dbpedia.org/sparql?default-graph-uri==describe+%3Chttp%3A%2F%2Fnl.dbpedia.org%2Fresource%2F2_Broke_Girls%3E=text%2Fhtml=3=on

See:

http://nl.dbpedia.org/sparql?default-graph-uri==define+sql%3Adescribe-mode+%22CBD%22%0D%0Adescribe+%3Chttp%3A%2F%2Fnl.dbpedia.org%2Fresource%2F2_Broke_Girls%3E=text%2Fhtml=3=on

DESCRIBE is sparsely specified in the SPARQL specs so you need to use a
pragma. In this case I used:

define sql:describe-moe "CBD"

Where CBD is for Concise Bound Description.

Kingsley
>
>
> On 26-01-17 22:19, Kingsley Idehen wrote:
>> What happens when you try:
>>
>> http://nl.dbpedia.org/sparql?default-graph-uri==select+*+%7Bgraph+%3Fg+%7B%3Fs+foaf%3Adepiction+%3Fpic%7D%7D+limit+100=text%2Fhtml=3=on
>>
>> If that's fine, this its down do you not using: GRAPH ?g in the
>> dataset modifier (body) of your sparql query.
>>
>>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] loaded data doesn't bind to graph specified

2017-01-26 Thread Kingsley Idehen
On 1/24/17 12:22 PM, Roland Cornelissen wrote:
>
> Hi,
>
> I have this weird situation where I load a dataset into nl.dbpedia
> like this:
>
> ld_dir ('/opt/static/data/nlwiki/20170120/', '*.nt',
> 'http://nl.dbpedia.org');
> rdf_loader_run();
>
> Now when I query the data I don't get it any results through the
> sparql interface when I phrase the query like this
> <http://nl.dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fnl.dbpedia.org=select+*+%7B%3Fs+foaf%3Adepiction+%3Fpic+%7D+limit+100%0D%0A=text%2Fhtml=3=on>
>
> But when the graph is explicitly specified in the query I get results
> as expected, like this
> <http://nl.dbpedia.org/sparql?default-graph-uri==select+*+%7Bgraph+%3Chttp%3A%2F%2Fnl.dbpedia.org%3E+%7B%3Fs+foaf%3Adepiction+%3Fpic%7D%7D+limit+100=text%2Fhtml=3=on>
>
> Results are not showing up in the URI resolving interface.
>
> Whats is going on here? How do I get those triples in the right graph?
>
> Thanks,
> Roland
>

What happens when you try:

http://nl.dbpedia.org/sparql?default-graph-uri==select+*+%7Bgraph+%3Fg+%7B%3Fs+foaf%3Adepiction+%3Fpic%7D%7D+limit+100=text%2Fhtml=3=on

If that's fine, this its down do you not using: GRAPH ?g in the dataset
modifier (body) of your sparql query.


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] request using rdfs:subPropertyOf* and rdfs:subClassOf*

2017-01-09 Thread Kingsley Idehen
th on data with the query :
>>>
>>> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
>>> PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>>> PREFIX:
>>>
>>> SELECT DISTINCT ?A ?B
>>> WHERE
>>> {
>>> ?A ?subProperty8 ?B.
>>> ?subProperty8 rdfs:subPropertyOf* :myrel.
>>>
>>> #constraint 1
>>> ?A rdf:type ?A_SubClassOf.
>>> ?A_SubClassOf rdfs:subClassOf* :mytype1.
>>>
>>> #constraint 2
>>> ?B rdf:type ?B_SubClassOf.
>>> ?B_SubClassOf rdfs:subClassOf* :mytype2.
>>> }
>>>
>>> I get only one result  :
>>> urn:my:graphA urn:my:graphX1
>>>
>>> If I remove the first or the second constraint, I get all results
>>> that I
>>> should find :
>>> urn:my:graphA urn:my:graphX1
>>> urn:my:graphC urn:my:graphX1
>>> urn:my:graphB urn:my:graphX2
>>>
>>> Could you say me if I did a wrong sparql insertion/request or if it's a
>>> bug ?
>>>
>>> Regards,
>>> Olivier F.
>>>
>>>
>>> -- 
>>> Filangi Olivier
>>> +33 (0)2 23 48 51 48
>>> Biodiversity and Polyploidy team - UMR1349 IGEPP - INRA - Agrocampus
>>> Ouest
>>> +33 (0)2 99 84 74 22
>>> GenOuest Bioinformatics Platform - IRISA
>>>
>>>
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org <http://slashdot.org>!
>>> http://sdm.link/slashdot
>>> ___
>>> Virtuoso-users mailing list
>>> Virtuoso-users@lists.sourceforge.net
>>> <mailto:Virtuoso-users@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
>>
>>
>> --
>> Check out the vibrant tech community on one of the world's most 
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>
>>
>> ___
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
>
> --
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Inference howto/if possible without materialization

2016-12-22 Thread Kingsley Idehen
On 12/22/16 9:38 AM, Jerven Tjalling Bolleman wrote:
> Dear Virtuoso Developers and other users.
>
>
> I have a question on inference.
>
> In the UniProt sparql endpoint there are 1,018,511,122 reification 
> quads.
>
> e.g.
>
> [] a rdf:Statement ;
> rdf:subject ?subject ;
> rdf:predicate ?predicate ;
> rdf:object ?object .
>
> Now the data modeling is what is so assume its invariant.
> Can we use virtuoso inferencing to infer the existence of the predicate
>
> [] a rdf:Statement
>
> given the matching statement .
>
> [] rdf:subject ?subject .
>
> i.e. infer the class relation ship from the rdf:subject predicate?
>
> If this is possible. How do we turn it on?
>
> Regards,
> Jerven
>
> -- Jerven Tjalling Bolleman SIB | Swiss Institute of Bioinformatics
> CMU - 1, rue Michel Servet - 1211 Geneva 4 t: +41 22 379 58 85 - f:
> +41 22 379 58 58 Jerven.Bolleman@sib.swiss - http://www.sib.swiss

Hi Jerven,

This is a Custom Inference feature which is part of Virtuoso 8.0
Commercial Edition (currently undergoing final release QA).

Using SPIN notation for rule declaration , it would be something along
the lines of:

rdf:Statement 
a owl:Class ;
spin:rule
  [ a sp:Construct ;
sp:text """
CONSTRUCT { ?s a rdf:Statement . } 
WHERE {?s rdf:subject ?o}


      
"""
   ] ;

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] 409 Invalid Path with SPARQL POST Direct

2016-12-21 Thread Kingsley Idehen
On 12/21/16 7:25 AM, Nikolaos Beredimas wrote:
> I am trying to POST a SPARQL query using the "query via POST directly"
> method described in SPARQL 1.1 Protocol ( paragraph 2.1.3)
> (https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-via-post-direct)
>
> However I am confused if Virtuoso actually does support this method
> I have managed to work both with GET and URL-encoded POST (at the same
> /sparql path)
> but when trying the direct POST method I get a 409 Invalid Path
>
>
> curl -i -X POST -H "Content-Type: application/sparql-query" -d
> 'SELECT * WHERE { ?s ?p ?o . }' "http://localhost:8890/sparql;
>
> HTTP/1.1 409 Invalid path
> Server: Virtuoso/07.20.3215 (Win64) x86_64-generic-win-64
> Connection: Keep-Alive
> Content-Type: text/html; charset=UTF-8
> Date: Wed, 21 Dec 2016 12:09:51 GMT
> Accept-Ranges: bytes
> Content-Length: 0
>
> Just to make sure it's not a problem on the request side, I launched a
> Jena Fuseki instance just for testing, and it appears to work correctly:
>  curl -i -X POST -H "Content-Type: application/sparql-query" -d
> 'SELECT * WHERE { ?s ?p ?o . }' "http://localhost:/mytest/sparql;
> HTTP/1.1 200 OK
> Date: Wed, 21 Dec 2016 12:14:47 GMT
> Fuseki-Request-ID: 2
> Cache-Control: must-revalidate,no-cache,no-store
> Pragma: no-cache
> Content-Type: application/sparql-results+json; charset=utf-8
> Transfer-Encoding: chunked
>
> {
>   "head": {
> "vars": [ "s" , "p" , "o" ]
>   } ,
>   "results": {
> "bindings": [
>
> ]
>   }
> }
>
>
>
>
> I have tried using Virtuoso VOS 7.20.3215 & 7.20.3217 
>
> Now, there have been a couple of threads in the past referencing the
> same issue, but unfortunately it was never resolved.
>
> So is it me doing something wrong, is it a bug, or does Virtuoso not
> support this method?
> Because the " 409 Invalid Path" doesn't make any sense to me.
> Note that if I ommit the Content-Type: application/sparql-query header
> I simply get back the SPARQL HTML page, so clearly there is something
> going wrong but the error message is either wrong or cryptic

Reproduced using:

curl -i -X POST -H "Content-Type: application/sparql-query" -d 'SELECT *
WHERE { ?s a ?o . } limit 5' "http://dbpedia.org/sparql/;
HTTP/1.1 409 Invalid path
Date: Wed, 21 Dec 2016 14:01:15 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Server: Virtuoso/07.20.3217 (Linux) i686-generic-linux-glibc212-64  VDB
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers:
DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Accept-Encoding


That's a bug. Basically, functionality has regressed. It will be looked
into, quickly.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] DBpedia 2016-04 Live Edition for Amazon AWS Cloud

2016-12-11 Thread Kingsley Idehen
All,

Quick FYI:

You can now instantiate personal or service-specific DBpedia 2016-04
instances via the Amazon AWS Cloud.

I explain the benefits and setup process in a recent blog post [1].

Links:

[1]
https://medium.com/virtuoso-blog/dbpedia-live-via-openlink-virtuoso-in-the-amazon-web-services-cloud-99b6fafbae2e
-- DBpedia 2016-04 LIve Edition Setup & Usage

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] geometry data type in virtuoso

2016-11-11 Thread Kingsley Idehen
On 11/11/16 12:04 PM, Peter F. Patel-Schneider wrote:
> My experience is different.  I refreshed virtuoso opensource to the version of
> 9 November.  When I tried to load a file with the triple I got an error.
>
>
> idefix /home/virtuoso/var/lib/virtuoso/db> /home/virtuoso/bin/isql  dba 
> dba
> Connected to OpenLink Virtuoso
> Driver: 07.20.3217 OpenLink Virtuoso ODBC Driver
> OpenLink Interactive SQL (Virtuoso), version 0.9849b.
> Type HELP; for help and EXIT; to exit.
> SQL> DELETE FROM DB.DBA.load_list;
>
> Done. -- 4 msec.
> SQL> ld_dir ('/home/local/SoftwareDownloads/wikidata',
> 'wikidata-mars.ttl', 'http://bkr.nuance.com/wikidata');
>
> Done. -- 3 msec.
> SQL> rdf_loader_run();
> 08:53:19 PL LOG: Loader started
> 08:53:19 PL LOG:  File
> /home/local/SoftwareDownloads/wikidata/wikidata-mars.ttl error 42000 RDFGE:
> RDF box with a geometry RDF type and a non-geometry content
> 08:53:19 PL LOG: No more files to load. Loader has finished,
>
> Done. -- 8 msec.
> SQL> idefix /home/virtuoso/var/lib/virtuoso/db>
> /home/virtuoso/bin/virtuoso-t --version
> Virtuoso Open Source Edition (Column Store) (multi threaded)
> Version 7.2.5-dev.3217-pthreads as of Nov  9 2016
> Compiled for Linux (x86_64-unknown-linux-gnu)
> Copyright (C) 1998-2016 OpenLink Software
>
> I think that the URL for geo: in your file is not one that is recognized by
> virtuoso as the namespace for the geospatial datatype.
>
> wikidata-mars.ttl has
> @prefix geo: <http://www.opengis.net/ont/geosparql#> .
> which is taken from the wikidata RDF dump.
>
> Your file has
> @prefix geo:  <http://www.w3.org/2003/01/geo/wgs84_pos#> .
>
> peter

Yes, he following isn't being loaded for overzealous reasons:
@prefix wdt: <http://www.wikidata.org/entity/> .
@prefix wd: <http://www.wikidata.org/entity1/> .
@prefix wikibase: <http://www.wikidata.org/entity2/> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .

wd:Q24227 a wikibase:Item ;
wdt:P625 " <http://www.wikidata.org/entity/Q111>
Point(351.83-14.47)"^^gro:wktLiteral .

It should load, even if Vituoso can't make sense of the geometric
context with regards to SPARQL queries etc..

Kingsley
>
>
>> Peter,
>>
>> I mispoke about SPARQL and GeoSPARQL. My apologies for the confusion.
>>
>> The triple is valid and it loads, as per the simple test I have at:
>>
>> http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents/Nanotations/test.ttl
>> .
>>
>> or:
>>
>>  curl -i
>> http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents/Nanotations/test.ttl
>>
>>
>> Thus, we need to figure out if this is something to do with the version you
>> are workings with (as my versions are typically hot of the press etc..).
>>
>> -- 
>> Regards,
>>
>> Kingsley Idehen
>> Founder & CEO 
>> OpenLink Software   (Home Page: http://www.openlinksw.com)
>>
>> Weblogs (Blogs):
>> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
>> Blogspot Blog: http://kidehen.blogspot.com
>> Medium Blog: https://medium.com/@kidehen
>>
>> Profile Pages:
>> Pinterest: https://www.pinterest.com/kidehen/
>> Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
>> Twitter: https://twitter.com/kidehen
>> Google+: https://plus.google.com/+KingsleyIdehen/about
>> LinkedIn: http://www.linkedin.com/in/kidehen
>>
>> Web Identities (WebID):
>> Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
>> : 
>> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
>>
>>
>>
>> --
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.link/xeonphi
>>
>>
>>
>> ___
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
>>
>>
>> --
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.l

Re: [Virtuoso-users] geometry data type in virtuoso

2016-11-11 Thread Kingsley Idehen
On 11/10/16 4:19 PM, Peter F. Patel-Schneider wrote:
> I modified rdfbox.c to take out the two (!) checks that object to literals of
> type geo:wktLiteral with coordinate system URIs.  Currently I'm loading a
> wikidata dump into virtuoso and nothing is complaining (so far).
>
> I expect that working with this data will produce query-time errors when
> trying to do geographic operations on these values.  Hopefully these errors
> will produce SPARQL errors that can be handled and not bring down virtuoso.
>
> peter
>
> PS:  I would be nice to be able to turn the errors into warnings, but I
> couldn't figure out how to do that.
>
> PPS:  It also would be nice to have an option that ignores triples with
> problems when loading large RDF documents.  I think that this has been asked
> for in the past as well.


Loading that ignores warnings is something we are looking into.

Kingsley
>
>
> On 11/10/2016 05:29 AM, Jerven Tjalling Bolleman wrote:
>> Dear Kingsley,
>>
>> I imagine that Peter is referring to
>>
>> Req 10
>>All RDFS Literals of type geo:wktLiteral shall consist of an
>> optional URI identifying the coordinate reference system followed by
>> Simple Features Well Known Text (WKT) describing a geometric value.
>> Valid geo:wktLiterals are formed by concatenating a valid,
>> absolute URI as defined in [RFC 2396], one or more spaces (Unicode
>> U+0020 character) as a separator, and a WKT string as defined in
>> Simple Features [ISO 19125-1].
>>
>>  From page vii of the GeoSPARQL standard. However, I can imagine that you 
>> have
>> few customers demanding GeoSPARQL support for Mars at this time ;)
>>
>> So it is just a feature not yet implemented...
>>
>> Regards,
>> Jerven
>>
>> On 2016-11-10 14:06, Kingsley Idehen wrote:
>>> On 11/9/16 10:25 PM, Peter F. Patel-Schneider wrote:
>>>> Through a process of bisection I found the datum that is not handled 
>>>> by
>>>> virtuoso.  It is
>>>>
>>>> wd:Q24227 a wikibase:Item ;
>>>>wdt:P625 "<http://www.wikidata.org/entity/Q111> Point(351.83
>>>> -14.47)"^^geo:wktLiteral .
>>>>
>>>> i.e., a point on Mars.
>>>>
>>>> Is virtuoso supposed to be able to handle other coordinate systems?  
>>>> If not,
>>>> how can it handle Wikidata and other information sources that have 
>>>> points not
>>>> on the surface of the earth?
>>>>
>>>> peter
>>> A valid RDF triple (or datum) would take the form:
>>>
>>> wd:Q24227 a wikibase:Item ;
>>> wdt:P625 "Point(351.83-14.47)"^^geo:wktLiteral .
>>>
>>> Thus, you have a problematic triple.
>>>
>>>
>>> Kingsley
>>>
>>>
>>>>
>>>> On 11/08/2016 07:23 PM, Hugh Williams wrote:
>>>>> Hi Peter,
>>>>>
>>>>> What is the Virtuoso version your are using ( run “virtuoso-t -?”) ?
>>>>>
>>>>> Against the latest 07.20.3217 build the following point geometry 
>>>>> loads
>>>>> successfully with the ttlp function:
>>>>>
>>>>> SQL> ttlp ('@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> 
>>>>> @prefix
>>>>> virtrdf: <http://www.openlinksw.com/schemas/virtrdf#>  
>>>>> geo:geometry
>>>>> "point(1.2 22.4"^^virtrdf:Geometry .', 'xxx', 'graph');
>>>>>
>>>>> Done. -- 10 msec.
>>>>> SQL> sparql select * from  where {?s ?p ?o};
>>>>> s
>>>>> p
>>>>> o
>>>>> LONG VARCHAR
>>>>> LONG VARCHAR
>>>>> LONG VARCHAR
>>>>> ___
>>>>>
>>>>> http://xxx/point
>>>>> http://www.w3.org/2003/01/geo/wgs84_pos#geometry
>>>>> POINT(1.200476837 22.3961853)
>>>>>
>>>>> 1 Rows. -- 2 msec.
>>>>> SQL>
>>>>>
>>>>> Best Regards
>>>>> Hugh Williams
>>>>> Professional Services
>>>>> OpenLink Software, Inc.  //  
>>>>> http://www.openlinksw.com/
>>>>> Weblog   -- http://www.openlinksw.com/blogs/
>>>>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>>>>> Twitter  -- h

Re: [Virtuoso-users] geometry data type in virtuoso

2016-11-10 Thread Kingsley Idehen
On 11/10/16 12:13 PM, Peter F. Patel-Schneider wrote:
> Is the problem that there is <> around the URI in
>   <http://www.wikidata.org/entity/Q111> Point(351.83 -14.47)
> Otherwise this is in the lexical space for geo:wktLiteral.
>
> Although the spec for geo:wktLiteral says that the lexical space consists of
> an optional URI followed by a geometric value, the examples in the spec
> enclose the URIs in <>.  I would expect that implementations of geo:wktLiteral
> would thus allow enclosing <>.
>
> Peter F. Patel-Schneider
> Nuance Communications

Hi Peter,

We don't support this GeoSPARQL notation for datum representation at
this time. We do plan to get this added in the not too distant future. I
just can't give a specific ETA at this point in time.

Kingsley 
>
> On 11/10/2016 05:06 AM, Kingsley Idehen wrote:
>> On 11/9/16 10:25 PM, Peter F. Patel-Schneider wrote:
>>> Through a process of bisection I found the datum that is not handled by
>>> virtuoso.  It is
>>>
>>> wd:Q24227 a wikibase:Item ;
>>> wdt:P625 "<http://www.wikidata.org/entity/Q111> Point(351.83
>>> -14.47)"^^geo:wktLiteral .
>>>
>>> i.e., a point on Mars.
>>>
>>> Is virtuoso supposed to be able to handle other coordinate systems?  If not,
>>> how can it handle Wikidata and other information sources that have points 
>>> not
>>> on the surface of the earth?
>>>
>>> peter
>> A valid RDF triple (or datum) would take the form:
>>
>> wd:Q24227 a wikibase:Item ;
>>  wdt:P625 "Point(351.83-14.47)"^^geo:wktLiteral .
>>
>> Thus, you have a problematic triple. 
>>
>>
>> Kingsley
>>
>>
>>>
>>> On 11/08/2016 07:23 PM, Hugh Williams wrote:
>>>> Hi Peter,
>>>>
>>>> What is the Virtuoso version your are using ( run “virtuoso-t -?”) ?
>>>>
>>>> Against the latest 07.20.3217 build the following point geometry loads
>>>> successfully with the ttlp function:
>>>>
>>>> SQL> ttlp ('@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> @prefix
>>>> virtrdf: <http://www.openlinksw.com/schemas/virtrdf#>  geo:geometry
>>>> "point(1.2 22.4"^^virtrdf:Geometry .', 'xxx', 'graph');
>>>>
>>>> Done. -- 10 msec.
>>>> SQL> sparql select * from  where {?s ?p ?o};
>>>> s  
>>>>   
>>>> p  
>>>>   
>>>> o
>>>> LONG VARCHAR   
>>>>   
>>>> LONG VARCHAR   
>>>>   
>>>> LONG VARCHAR
>>>> ___
>>>>
>>>> http://xxx/point   
>>>>   
>>>> http://www.w3.org/2003/01/geo/wgs84_pos#geometry   
>>>>   
>>>> POINT(1.200476837 22.3961853)
>>>>
>>>> 1 Rows. -- 2 msec.
>>>> SQL> 
>>>>
>>>> Best Regards
>>>> Hugh Williams
>>>> Professional Services
>>>> OpenLink Software, Inc.  //  http://www.openlinksw.com/
>>>> Weblog   -- http://www.openlinksw.com/blogs/
>>>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>>>> Twitter  -- http://twitter.com/OpenLink
>>>> Google+  -- http://plus.google.com/100570109519069333827/
>>>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>>>> Universal Data Access, Integration, and Management Technology Providers
>>>>
>>>>> On 9 Nov 2016, at 02:34, Peter F. Patel-Schneider <pfpschnei...@gmail.com
>>>>> <mailto:pfpschnei...@gmail.com>> wrote:
>>>>>
>>>>> Hi:
>>>>>
>>>>> I'm trying to get virtuoso to work with geometry data types.
>>>>>
>>>>> I noticed that the version of virtuoso that I am using requires that the 
>>>>> data
>>>>> type names be in ALL CAPS (e.g., POINT).   Has this been fixed in the 
>>>>> current
>>>>> version of virtuoso?
>>>>>
>>>>> peter
>>>>>
>>

Re: [Virtuoso-users] geometry data type in virtuoso

2016-11-10 Thread Kingsley Idehen
On 11/10/16 8:29 AM, Jerven Tjalling Bolleman wrote:
> Dear Kingsley,
>
> I imagine that Peter is referring to
>
> Req 10
>   All RDFS Literals of type geo:wktLiteral shall consist of an
> optional URI identifying the coordinate reference system followed by
> Simple Features Well Known Text (WKT) describing a geometric value.
> Valid geo:wktLiterals are formed by concatenating a valid,
> absolute URI as defined in [RFC 2396], one or more spaces (Unicode
> U+0020 character) as a separator, and a WKT string as defined in
> Simple Features [ISO 19125-1].
>
> From page vii of the GeoSPARQL standard. However, I can imagine that
> you have
> few customers demanding GeoSPARQL support for Mars at this time ;)
>
> So it is just a feature not yet implemented...
>
> Regards,
> Jerven

Hi Jerven,

Correct.

We are considering adding this syntax sugar atop our GeoData processing
capability, but at the current time we don't have an ETA.


Kingsley
>
> On 2016-11-10 14:06, Kingsley Idehen wrote:
>> On 11/9/16 10:25 PM, Peter F. Patel-Schneider wrote:
>>> Through a process of bisection I found the datum that is not handled by
>>> virtuoso.  It is
>>>
>>> wd:Q24227 a wikibase:Item ;
>>> wdt:P625 "<http://www.wikidata.org/entity/Q111> Point(351.83
>>> -14.47)"^^geo:wktLiteral .
>>>
>>> i.e., a point on Mars.
>>>
>>> Is virtuoso supposed to be able to handle other coordinate systems? 
>>> If not,
>>> how can it handle Wikidata and other information sources that have
>>> points not
>>> on the surface of the earth?
>>>
>>> peter
>>
>> A valid RDF triple (or datum) would take the form:
>>
>> wd:Q24227 a wikibase:Item ;
>> wdt:P625 "Point(351.83-14.47)"^^geo:wktLiteral .
>>
>> Thus, you have a problematic triple.
>>
>>
>> Kingsley
>>
>>
>>>
>>>
>>> On 11/08/2016 07:23 PM, Hugh Williams wrote:
>>>> Hi Peter,
>>>>
>>>> What is the Virtuoso version your are using ( run “virtuoso-t -?”) ?
>>>>
>>>> Against the latest 07.20.3217 build the following point geometry loads
>>>> successfully with the ttlp function:
>>>>
>>>> SQL> ttlp ('@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
>>>> @prefix
>>>> virtrdf: <http://www.openlinksw.com/schemas/virtrdf#> 
>>>> geo:geometry
>>>> "point(1.2 22.4"^^virtrdf:Geometry .', 'xxx', 'graph');
>>>>
>>>> Done. -- 10 msec.
>>>> SQL> sparql select * from  where {?s ?p ?o};
>>>> s
>>>> p
>>>> o
>>>> LONG VARCHAR
>>>> LONG VARCHAR
>>>> LONG VARCHAR
>>>> ___
>>>>
>>>>
>>>> http://xxx/point
>>>> http://www.w3.org/2003/01/geo/wgs84_pos#geometry
>>>> POINT(1.200476837 22.3961853)
>>>>
>>>> 1 Rows. -- 2 msec.
>>>> SQL>
>>>>
>>>> Best Regards
>>>> Hugh Williams
>>>> Professional Services
>>>> OpenLink Software, Inc.  // 
>>>> http://www.openlinksw.com/
>>>> Weblog   -- http://www.openlinksw.com/blogs/
>>>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>>>> Twitter  -- http://twitter.com/OpenLink
>>>> Google+  -- http://plus.google.com/100570109519069333827/
>>>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>>>> Universal Data Access, Integration, and Management Technology
>>>> Providers
>>>>
>>>>> On 9 Nov 2016, at 02:34, Peter F. Patel-Schneider
>>>>> <pfpschnei...@gmail.com
>>>>> <mailto:pfpschnei...@gmail.com>> wrote:
>>>>>
>>>>> Hi:
>>>>>
>>>>> I'm trying to get virtuoso to work with geometry data types.
>>>>>
>>>>> I noticed that the version of virtuoso that I am using requires
>>>>> that the data
>>>>> type names be in ALL CAPS (e.g., POINT).   Has this been fixed in
>>>>> the current
>>>>> version of virtuoso?
>>>>>
>>>>> peter
>>>>>
>>>>> ------
>>>>>
>>>>> Developer Access Pro

Re: [Virtuoso-users] geometry data type in virtuoso

2016-11-10 Thread Kingsley Idehen
On 11/9/16 10:25 PM, Peter F. Patel-Schneider wrote:
> Through a process of bisection I found the datum that is not handled by
> virtuoso.  It is
>
> wd:Q24227 a wikibase:Item ;
>   wdt:P625 "<http://www.wikidata.org/entity/Q111> Point(351.83
> -14.47)"^^geo:wktLiteral .
>
> i.e., a point on Mars.
>
> Is virtuoso supposed to be able to handle other coordinate systems?  If not,
> how can it handle Wikidata and other information sources that have points not
> on the surface of the earth?
>
> peter

A valid RDF triple (or datum) would take the form:

wd:Q24227 a wikibase:Item ;
wdt:P625 "Point(351.83-14.47)"^^geo:wktLiteral .

Thus, you have a problematic triple. 


Kingsley


>
>
> On 11/08/2016 07:23 PM, Hugh Williams wrote:
>> Hi Peter,
>>
>> What is the Virtuoso version your are using ( run “virtuoso-t -?”) ?
>>
>> Against the latest 07.20.3217 build the following point geometry loads
>> successfully with the ttlp function:
>>
>> SQL> ttlp ('@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> @prefix
>> virtrdf: <http://www.openlinksw.com/schemas/virtrdf#>  geo:geometry
>> "point(1.2 22.4"^^virtrdf:Geometry .', 'xxx', 'graph');
>>
>> Done. -- 10 msec.
>> SQL> sparql select * from  where {?s ?p ?o};
>> s
>> p
>> o
>> LONG VARCHAR 
>> LONG VARCHAR 
>> LONG VARCHAR
>> ___
>>
>> http://xxx/point 
>> http://www.w3.org/2003/01/geo/wgs84_pos#geometry 
>> POINT(1.200476837 22.3961853)
>>
>> 1 Rows. -- 2 msec.
>> SQL> 
>>
>> Best Regards
>> Hugh Williams
>> Professional Services
>> OpenLink Software, Inc.  //  http://www.openlinksw.com/
>> Weblog   -- http://www.openlinksw.com/blogs/
>> LinkedIn -- http://www.linkedin.com/company/openlink-software/
>> Twitter  -- http://twitter.com/OpenLink
>> Google+  -- http://plus.google.com/100570109519069333827/
>> Facebook -- http://www.facebook.com/OpenLinkSoftware
>> Universal Data Access, Integration, and Management Technology Providers
>>
>>> On 9 Nov 2016, at 02:34, Peter F. Patel-Schneider <pfpschnei...@gmail.com
>>> <mailto:pfpschnei...@gmail.com>> wrote:
>>>
>>> Hi:
>>>
>>> I'm trying to get virtuoso to work with geometry data types.
>>>
>>> I noticed that the version of virtuoso that I am using requires that the 
>>> data
>>> type names be in ALL CAPS (e.g., POINT).   Has this been fixed in the 
>>> current
>>> version of virtuoso?
>>>
>>> peter
>>>
>>> --
>>> Developer Access Program for Intel Xeon Phi Processors
>>> Access to Intel Xeon Phi processor-based developer platforms.
>>> With one year of Intel Parallel Studio XE.
>>> Training and support from Colfax.
>>> Order your platform today. http://sdm.link/xeonphi
>>> ___
>>> Virtuoso-users mailing list
>>> Virtuoso-users@lists.sourceforge.net
>>> <mailto:Virtuoso-users@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Go

Re: [Virtuoso-users] Better question on virt-jena.jar

2016-11-07 Thread Kingsley Idehen
On 11/7/16 10:55 AM, Davis, Daniel (NIH/NLM) [C] wrote:
>
> Who is maintaining virt-jena?  What is the process of maintaining
> this, e.g. is this portion of virtuoso purely contributed, or does
> OpenLink plan to update it and maintain it.   
>
>  
>
> My application depends on virt-jena.  I will need to tell my boss
> where an upgrade to virt-jena is in an OpenLink roadmap, and also,
> whether we need to dedicate resources ourselves to keep this up to
> date, or socialize the issue with the contributors.  The claimed
> compatibility of virt-jena.jar is very old, and while it works up to
> 2.13.0, Jena 3 is now over a year old, and has many releases.
>
>  
>
> As a government shop, I ran my webapp dependencies through the OWASP
> dependency checker, and while I could make everything compliant, it is
> not the best way to override individual dependent libraries, and
> better to get individual dependent libraries to be updated.   I’d also
> love to see the process change to use Maven or Ant with ivy.
>

Daniel,

We are committed to keeping our native Jena Providers up to date. I'll
take a look at the Jena 3 issue.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Query performance with R2RML remote RDBMS SQL Server

2016-11-07 Thread Kingsley Idehen
On 11/4/16 8:56 AM, CHARBEL EL KAED wrote:
>
> Thank you Kingsley,
>
>  
>
> Is there an approximate date for the patch?
>
We can get it to you in about a week or less. Your case will be updated
accordingly.

Kingsley
>
> Thank you,
>
> Best/Cordialement,
>
> Charbel El Kaed, PhD
> Business Architect
> Digital Services Platform
> Global Solutions
> Schneider Electric
>
>   
>
> D  +1 (978) 975-9361 x59361
> M  +1 (978) 289-3190
> E  charbel.el-k...@schneider-electric.com
> <mailto:charbel.el-k...@schneider-electric.com>
>
>   
>
> 800 Federal Street
> Andover
> United States
>
>  
>
> http://www.apcmedia.com/emailsignature/images/998-19615502_BrandBusinessBanners_620x80_1.jpg
> <http://www.schneider-electric.com/b2b/en/solutions/index.jsp#xtor=CS4-110-[Print]-[Event]-[LIO]-[Hong_Kong]>
>
>  
>
>
> *Please consider the environment before printing this e-mail
>
>   
>
> FB <http://blog.schneider-electric.com/> FB
> <https://www.facebook.com/SchneiderElectric> FB
> <https://www.twitter.com/SchneiderElec> FB
> <https://www.linkedin.com/company/schneider-electric> FB
> <https://www.youtube.com/schneidercorporate> FB
> <https://instagram.com/schneiderelectric> FB
> <https://plus.google.com/+schneiderelectric> 
>
>
>   
>
>  
>
>  
>
> *From:*Kingsley Idehen [mailto:kide...@openlinksw.com]
> *Sent:* Thursday, November 03, 2016 9:30 PM
> *To:* virtuoso-users@lists.sourceforge.net
> *Subject:* Re: [Virtuoso-users] Query performance with R2RML remote
> RDBMS SQL Server
>
>  
>
> On 10/14/16 12:41 PM, CHARBEL EL KAED wrote:
>
> Hello,
>
>  
>
> I would like to have your opinion on the following:
>
>  
>
> I installed Virtuoso Enterprise on a Windows VM with:
>
> 8 cores
>
> 28 GB RAM
>
> 56 GB SSD
>
>  
>
> I attached virtuoso configuration file.
>
>  
>
> On virtuoso I have a local RDF Table with 8221 triples and a
> remote MS SQL Azure with 50 million records. A record is simply an
> id, param1 and param2, with (id and param1) as a composite primary
> key.
>
> I have the following query:
>
>  
>
> Select ?id ?param1 ?param2 {
>
>Select ?id ?param1 ?param2 FROM
> <http://localhost:8890/sqldb50m# <http://localhost:8890/sqldb50m>>
>
>  Where {
>
> [] <http://localhost:8890/schemas/sqldb50m/id> ?id;
>
> <http://localhost:8890/schemas/ sqldb50m /param1
> <http://localhost:8890/schemas/%20sqldb50m%20/param1>> ? param1;
>
> <http://localhost:8890/schemas/ sqldb50m /param2
> <http://localhost:8890/schemas/%20sqldb50m%20/param2%20>> ? param2. 
>
> filter (?param1 < 5)
>
> {
>
> SELECT DISTINCT (strafter(str(?id1), "#") AS ?trimId) from
> <http://localhost:8890/BOC# <http://localhost:8890/BOC>>
>
> WHERE
>
> {
>
> ?server qt:hasId ?id1. //returns 42 ids
>
> }
>
> }
>
> filter( ?trimId = ?id)
>
> }
>
>  };
>
>  
>
> The query is expected to return 1 million record result.
>
> I initiated the query yesterday through iSQL, it is still running
> since, more than 12 hours. On the Windows VM, the task manager
> shows that Virtuoso consumes 10 GB of RAM and less then 5% of CPU.
>
> On the MS SQL monitoring tool, you can notice the load is constant
> using only 10% of the CPU and 10% of the DTU.
>
>  
>
> Any recommendations to improve the performance?
>
>  
>
> Thank you
>
>  
>
> There should be an update in your support case about this matter.
> Fundamentally, there was a SPARQL Optimizer bug that lead to the
> shared variable effect not kicking in i.e., executing the remote part
> of the query. Here are examples to explain the gist of the matter:
>
>  
>
> ## Problematic  due to missing {} around dataset modifier fragments
> that contain shared variables between local and remote
>
> ## Data Sources
>
> SELECT ?s ?p (sql:BEST_LANGMATCH (?o, "ru, en-gb;q=0.8, en;q=0.7,
> *;q=0.1", "")) as ?o_filtered
> WHERE {
> ?s a foaf:Person .
> # Virtuoso Extension for setting Named Graph scope on a Remote
> SPARQL service
> SERVICE <http://dbpedia.org/sparql>
> <http://dbpedia.org/sparql> from <http://dbpedia.org>
> <http://dbpedia.org>
>   {
>  ?s ?p ?o .

Re: [Virtuoso-users] Query performance with R2RML remote RDBMS SQL Server

2016-11-03 Thread Kingsley Idehen
On 10/14/16 12:41 PM, CHARBEL EL KAED wrote:
>
> Hello,
>
>  
>
> I would like to have your opinion on the following:
>
>  
>
> I installed Virtuoso Enterprise on a Windows VM with:
>
> 8 cores
>
> 28 GB RAM
>
> 56 GB SSD
>
>  
>
> I attached virtuoso configuration file.
>
>  
>
> On virtuoso I have a local RDF Table with 8221 triples and a remote MS
> SQL Azure with 50 million records. A record is simply an id, param1
> and param2, with (id and param1) as a composite primary key.
>
> I have the following query:
>
>  
>
> Select ?id ?param1 ?param2 {
>
>Select ?id ?param1 ?param2 FROM
> <http://localhost:8890/sqldb50m# <http://localhost:8890/sqldb50m>>
>
>  Where {
>
> [] <http://localhost:8890/schemas/sqldb50m/id> ?id;
>
> <http://localhost:8890/schemas/ sqldb50m /param1
> <http://localhost:8890/schemas/%20sqldb50m%20/param1>> ? param1;
>
> <http://localhost:8890/schemas/ sqldb50m /param2
> <http://localhost:8890/schemas/%20sqldb50m%20/param2%20>> ? param2. 
>
> filter (?param1 < 5)
>
> {
>
> SELECT DISTINCT (strafter(str(?id1), "#") AS ?trimId) from
> <http://localhost:8890/BOC# <http://localhost:8890/BOC>>
>
> WHERE
>
> {
>
> ?server qt:hasId ?id1. //returns 42 ids
>
> }
>
> }
>
> filter( ?trimId = ?id)
>
> }
>
>  };
>
>  
>
> The query is expected to return 1 million record result.
>
> I initiated the query yesterday through iSQL, it is still running
> since, more than 12 hours. On the Windows VM, the task manager shows
> that Virtuoso consumes 10 GB of RAM and less then 5% of CPU.
>
> On the MS SQL monitoring tool, you can notice the load is constant
> using only 10% of the CPU and 10% of the DTU.
>
>  
>
> Any recommendations to improve the performance?
>
>  
>
> Thank you
>

There should be an update in your support case about this matter.
Fundamentally, there was a SPARQL Optimizer bug that lead to the shared
variable effect not kicking in i.e., executing the remote part of the
query. Here are examples to explain the gist of the matter:


## Problematic  due to missing {} around dataset modifier fragments that
contain shared variables between local and remote

## Data Sources

SELECT ?s ?p (sql:BEST_LANGMATCH (?o, "ru, en-gb;q=0.8, en;q=0.7,
*;q=0.1", "")) as ?o_filtered
WHERE {
?s a foaf:Person .
# Virtuoso Extension for setting Named Graph scope on a Remote
SPARQL service
SERVICE <http://dbpedia.org/sparql> from <http://dbpedia.org>
  {
 ?s ?p ?o .
 FILTER (?p != <http://dbpedia.org/property/abstract>)
  }
 
OPTIONAL { ?p rdfs:label ?lbl }
  }
ORDER BY ASC (COUNT (?o))


## Revised query using {} to group dataset modifier fragments to set
scope for shared variable identifiers

SELECT ?s ?p (sql:BEST_LANGMATCH (?o, "ru, en-gb;q=0.8, en;q=0.7,
*;q=0.1", "")) as ?o_filtered
WHERE {*
*

*  {  **## shared variable block start ##*
?s a foaf:Person .
# Virtuoso Extension for setting Named Graph scope on a
Remote SPARQL service
SERVICE <http://dbpedia.org/sparql> from <http://dbpedia.org>
  {
 ?s ?p ?o .
 FILTER (?p != <http://dbpedia.org/property/abstract>)
  }
 *   ***## shared variable block end ## *}*
OPTIONAL { ?p rdfs:label ?lbl }
  }
ORDER BY ASC (COUNT (?o))


## Another example that failed where I am passing values using BIND.
This failed and will work properly when the fix is in ##

PREFIX csv:
<https://gist.githubusercontent.com/lawlesst/bdbd2142c2ab667eae1be3b7a789f5da/raw/643196cb31a13ddc3746d7a340bf3674d31f3bc2/top_250_by_pages.csv#>

SELECT ?w ?p ?o2
FROM NAMED
<https://gist.githubusercontent.com/lawlesst/bdbd2142c2ab667eae1be3b7a789f5da/raw/643196cb31a13ddc3746d7a340bf3674d31f3bc2/top_250_by_pages.csv>

WHERE {
GRAPH
<https://gist.githubusercontent.com/lawlesst/bdbd2142c2ab667eae1be3b7a789f5da/raw/643196cb31a13ddc3746d7a340bf3674d31f3bc2/top_250_by_pages.csv>
  {?s csv:wikidata ?o . }
BIND (IRI(?o) AS ?w)
SERVICE <http://dbpedia.org/sparql> { SELECT * WHERE {?w ?p ?o2.
} LIMIT 50 }
 
}

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kide

Re: [Virtuoso-users] How to deal with partially executed SPARQL updates?

2016-10-30 Thread Kingsley Idehen
On 10/30/16 10:50 AM, Jindřich Mynarz wrote:
>
> the behaviour you describe is what I'd like to be able to rely on. (In
> fact, it's the opposite of the Anytime query.) Updates should either
> be executed completely or fail transparently, so that the incomplete
> execution may be handled.
>
> I will have to test this properly to ensure that partial updates
> indeed occur.

A partial update shouldn't occur. Now of course in SPARQL that means a
combination of INSERT and DELETE, so you do have transaction management
issues in play with regards to commits and rollbacks which exist in SQL
but not SPARQL.

Please share more information about what you are executing and why you
think a partial UPDATE may have occurred.

As per your earlier inquiry, Anytime Query is strictly a SELECT or ASK
query feature.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Using PREFIX in a prepared Statement

2016-10-24 Thread Kingsley Idehen
On 10/24/16 12:00 PM, Davis, Daniel (NIH/NLM) [C] wrote:
>
> Kingsley,
>
>  
>
> I’m not sure exactly how this helps me.   Let me be clearer on the
> problem.   Because this application runs within a federal government
> site, I’m required to submit my source code to static analysis.  
> Although the data is read-only, and the database user has only
> read-only access, there are still general guidelines.
>
> I’m inquiring in the sense therefore that I want to figure out the
> boundaries of how Virtuoso JDBC can enable me to pass these
> guidelines, even though I think I can get an exemption by labeling the
> SQL injection complaint a false positive.
>
>  
>
> What I’m talking about is doing this through a JDBC interface, and
> rather than using a query of the form:
>
>  
>
> String queryFormat= "SPARQL"
>
> + " define input:inference
> \"http://id.nlm.nih.gov/mesh/vocab\";
>
> + " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>"
>
> + " PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>"
>
> + " PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>"
>
> + " PREFIX owl: <http://www.w3.org/2002/07/owl#>"
>
> + " PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#>"
>
> + " PREFIX mesh: <http://id.nlm.nih.gov/mesh/>"
>
> + " SELECT ?l"
>
> + " FROM <http://id.nlm.nih.gov/mesh>"
>
> + " WHERE { mesh:%s %s ?l }";
>
> String query= String./format/(queryFormat, id, prop);
>
> log.info(query);
>
> Statement stmt= connection.createStatement();
>
> ResultSet rset= stmt.executeQuery(query);
>
>  
>
> I would rather do this using a prepared statement, maybe still
> formatting in the property so that the query plan can benefit from the
> predicate index:
>
>  
>
> String queryFormat= "SPARQL"
>
> + " define input:inference
> \"http://id.nlm.nih.gov/mesh/vocab\";
>
> + " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>"
>
> + " PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>"
>
> + " PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>"
>
> + " PREFIX owl: <http://www.w3.org/2002/07/owl#>"
>
> + " PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#>"
>
> + " PREFIX mesh: <http://id.nlm.nih.gov/mesh/>"
>
> + " SELECT ?l"
>
> + " FROM <http://id.nlm.nih.gov/mesh>"
>
> + " WHERE { ?? %s ?l }";
>
> String query= String./format/(queryFormat, prop);
>
> log.info(query);
>
> PreparedStatement stmt= connection.prepareStatement(query);
>
> stmt.setString(1, "http://id.nlm.nih.gov/mesh/"+id);
>
>
>
> So far, this general approach of using a prepared statement is not
> working for me.   I may struggle through it, but is there anyway for
> me to preserve the convenience of prefixes:
>
>  
>
> … WHERE { mesh:?? %s ?l };
>
>  
>
> And then later bind the query argument?
>

Understood. Problem is that we need to publish more examples re., use of
SPARQL via ODBC and JDBC connections.

To our issue:

It will be something like:

 String queryFormat = "SPARQL"
 + " define input:inference \"http://id.nlm.nih.gov/mesh/vocab\";
 + " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>"
 + " PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>"
 + " PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>"
 + " PREFIX owl: <http://www.w3.org/2002/07/owl#>"
 + " PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#>"
 + " PREFIX mesh: <http://id.nlm.nih.gov/mesh/>"
 + " SELECT ?l"
 + " FROM <http://id.nlm.nih.gov/mesh>"
 + " *WHERE { `iri(??)` `iri(??)` ?l }*";

// String query = String.format(queryFormat, id, prop);
// log.info(query);

 PreparedStatement ps = connection.prepareStatement(query);
 ps.setString(1, "http://id.nlm.nih.gov/mesh/"+id);
 ps.setString(2, prop);
 ResultSet rset = ps.executeQuery();

Note: You have to quote URIs without < >
Example:
   String prop = "http://testhost.o

Re: [Virtuoso-users] Using PREFIX in a prepared Statement

2016-10-21 Thread Kingsley Idehen
On 10/21/16 5:36 PM, Davis, Daniel (NIH/NLM) [C] wrote:
>
> So, I must run my application through a source code scanner, and it is
> reasonably complaining that I am using String.format() and
> stmt.executeQuery(query) with the Virtuoso JDBC connection.
>
>  
>
> Yet, this is SPARQL.   I see some discussion of prepared statements on
> this list in the past.   What I want to know is:
>
> ·What is the best way to get this to work at all?
>
> ·Is there any way I can bind a parameter whose value includes
> a PREFIX in the query?Something like stmt.setString(1, “mesh:D20189”);
>
>  
>
> Dan Davis, Systems/Applications Architect (Contractor),
>
> Office of Computer and Communications Systems,
>
> National Library of Medicine, NIH
>
>  
>

I assume your query is of the form:

SPARQL

{SPARQL-Query}


OR

SELECT {SELECT-LIST}

FROM {SPARQL {SPARQL-QUERY} } AS {SQL Tabular Relation ALIAS} .


[1] http://bit.ly/sparql-as-sql-tabular-relation -- SPARQL Query as SQL
Tabular Relation (note: user "vdb" for user and pwd) in FROM CLAUSE

[2] http://bit.ly/sparql-as-sql-tabular-relation2 -- SPARQL Query as SQL
Tabular Relation

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] ANN: DBpedia version 2016-04 released

2016-10-17 Thread Kingsley Idehen
 o
>
> Lector Facts:This experimental dataset was provided by Matteo
> Cannaviccio and demonstrates his approach
> <http://dl.acm.org/citation.cfm?id=2932203>to generating facts
> by using common sequences of words (i.e. phrases) that are
> frequently used to describe instances of binary relations in a
> text. We are looking into using this approach as a regular
> extraction step. It would be helpful to get some feedback from
> you.
>
>
> 
>
>
> Credits
>
> Lots of thanks to
>
>  *
>
> Markus Freudenberg (University of Leipzig / DBpedia Association)
> for taking over the whole release process and creating the
> revamped download & statistics pages.
>
>  *
>
> Dimitris Kontokostas (University of Leipzig / DBpedia Association)
> for conveying his considerable knowledge of the extraction and
> release process.
>
>  *
>
> All editors that contributed to the DBpedia ontology mappings via
> the Mappings Wiki.
>
>  *
>
> The whole DBpedia Internationalization Committee for pushing the
> DBpedia internationalization forward.
>
>  *
>
> Heiko Paulheim (University of Mannheim) for providing the
> necessary code for his algorithm to generate additional type
> statements for formerly untyped resources and identify and removed
> wrong statements. Which is now part of the DIEF.
>
>  *
>
> Václav Zeman, Thomas Klieger and the whole LHD team (University of
> Prague) for their contribution of additional DBpedia types
>
>  *
>
> Marco Fossati (FBK) for contributing the DBTax types
>
>  *
>
> Alan Meehan (TCD) for performing a big external link cleanup
>
>  *
>
> Aldo Gangemi (LIPN University, France & ISTC-CNR, Italy) for
> providing the links from DOLCE to DBpedia ontology.
>
>  *
>
> Kingsley Idehen, Patrick van Kleef, and Mitko Iliev (all OpenLink
> Software) for loading the new data set into the Virtuoso instance
> that provides 5-Star Linked Open Data publication and SPARQL Query
> Services.
>
>  *
>
> OpenLink Software (http://www.openlinksw.com/) collectively for
> providing the SPARQL Query Services and Linked Open Data
> publishing  infrastructure for DBpedia in addition to their
> continuous infrastructure support.
>
>  *
>
> Ruben Verborgh from Ghent University – iMinds for publishing the
> dataset asTriple Pattern Fragments
> <http://fragments.dbpedia.org/>, and iMinds for sponsoring
> DBpedia’s Triple Pattern Fragments server.
>
>  *
>
> Ali Ismayilov (University of Bonn) for extending the DBpedia
> Wikidata dataset.
>
>  *
>
> Vladimir Alexiev (Ontotext) for leading a successful mapping and
> ontology clean up effort.
>
>  *
>
> All the GSoC students and mentors which directly or indirectly
> influenced the DBpedia release
>
>  *
>
> Special thanks to members of theDBpedia Association
> <http://dbpedia.org/dbpedia-association>, theAKSW
> <http://aksw.org/About.html>and the department forBusiness
> Information Systems
> <http://bis.informatik.uni-leipzig.de/en/Welcome>of the University
> of Leipzig.
>
>
>
>
> The work on the DBpedia 2016-04 release was financially supported by
> the European Commission through the project ALIGNED – quality-centric,
> software and data engineering  (http://aligned-project.eu/).
>
> More information about DBpedia is found athttp://dbpedia.org
> <http://dbpedia.org/>as well as in the new overview article about the
> project available athttp://wiki.dbpedia.org/Publications
> <http://wiki.dbpedia.org/Publications>.
>
> Have fun with the new DBpedia 2016-04 release!
>
> Cheers,
>
> Markus Freudenberg, Dimitris Kontokostas, Sebastian Hellmann


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Problem with advanced queries

2016-10-12 Thread Kingsley Idehen
On 10/12/16 12:24 PM, Safran, Tracy (NIH/NCI) [C] wrote:
>
> More information:  If I query the open-source version of Virtuoso,
> loaded with the same set of graphs, it returns results.  I suspect
> there is something in the configuration or security of the commercial
> that is not letting this return.  I am not really sure where to look
> to debug this.
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>

If you are using the security features of the commercial edition then
this boils down to you target named graph potentially being set to private.
So yes, this is security configuration related, as long as target
named-graph rather than structure of query is source of the query
solution anomaly.

Simple cleanup sequence:

-- Remove <http://NCIT_NG1> from Private Named Graphs Group, should it
be currently set to Private

DB.DBA.RDF_GRAPH_GROUP_DEL
('http://www.openlinksw.com/schemas/virtrdf#PrivateGraphs','http://NCIT_NG1')
;

-- Clearout perms set for 'nobody'

DB.DBA.RDF_ALL_USER_PERMS_DEL ('nobody') ;


-- Read privileges for 'nobody' on 'world' (public) named graphs

DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('nobody', 1, 0);



-- Graph Security Rules Sanity Check

RDF_GRAPH_SECURITY_AUDIT ( 0 ) ;



[1]
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtRDFGraphsSecurity

Kingsley
>
>  
>
>  
>
> *From: *"Safran , Tracy (NIH/NCI) [C]" <safr...@mail.nih.gov>
> *Date: *Tuesday, October 11, 2016 at 8:59 PM
> *To: *Kingsley Idehen <kide...@openlinksw.com>,
> "virtuoso-users@lists.sourceforge.net"
> <virtuoso-users@lists.sourceforge.net>
> *Subject: *Re: [Virtuoso-users] Problem with advanced queries
>
>  
>
> I am not getting any error, just an empty class list. (:
> []) The same dataset is loaded into Stardog, for the sake of
> comparison, and the exact same query returns results.
>
>  
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>
>  
>
>  
>
> *From: *Kingsley Idehen <kide...@openlinksw.com>
> *Date: *Tuesday, October 11, 2016 at 6:17 PM
> *To: *"virtuoso-users@lists.sourceforge.net"
> <virtuoso-users@lists.sourceforge.net>
> *Subject: *Re: [Virtuoso-users] Problem with advanced queries
>
>  
>
> On 10/11/16 4:37 PM, Safran, Tracy (NIH/NCI) [C] wrote:
>
> I am having problems doing some slightly advanced queries against
> http.  A simple query works but other queries don’t.  Is there a
> deeper issue with permissions or indexes that I need to look into?
>
>  
>
> Example:  This works.
>
>  
>
> /SELECT * /
>
> /FROM <http://NCIT_NG1> <http://NCIT_NG1> where { ?s ?p ?o }
> LIMIT 50/
>
>  
>
> But this does not (note: prefix left out for brevity)
>
> /SELECT ?subject ?role ?object/
>
> /WHERE {/
>
> /?subject rdfs:subClassOf ?an ./
>
> /?an owl:onProperty ?role ./
>
> /?an owl:someValuesFrom ?object ./
>
> /?subject rdfs:subClassOf* ncit:Gene/
>
> /}/
>
> /ORDER BY _asc_(?subject)/
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>
>  
>
> I assume you are getting:
>
> Virtuoso 37000 Error TR...: transitive start not given  ?
>  
> You need to add some qualification to the query to optimize for
> unknowns such as db size and available memory.
>  
> Examples:
>  
> 1.
> http://dbpedia.org/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3AClass+.%0D%0A%3Fobject+a+owl%3AClass+.%0D%0A%3Fsubject+rdfs%3AsubClassOf*+%3Fobject+.+%0D%0A%0D%0Afilter+%28contains%28xsd%3Astring%28%3Fsubject%29%2C%27dbpedia.org%27%29%29%0D%0A%7D%0D%0A%0D%0AORDER+BY+asc%281%29%0D%0A%0D%0ALIMIT+100=text%2Fx-html%2Btr_redir_for_subjs=121_redir_for_hrefs==3=on
> -- DBpedia Static
>  
> 2.
> http://dbpedia-live.openlinksw.com/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%

Re: [Virtuoso-users] Problem with advanced queries

2016-10-12 Thread Kingsley Idehen
On 10/11/16 8:59 PM, Safran, Tracy (NIH/NCI) [C] wrote:
>
> I am not getting any error, just an empty class list. (:
> []) The same dataset is loaded into Stardog, for the sake of
> comparison, and the exact same query returns results.
>
>  
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>

My examples are against pretty large datasets, but using the commercial
edition of Virtuoso.  Are you able to provide any insights into your
datasets?

Please try the following to see if they shed any light on this matter. :

/SELECT ?subject ?role ?object/

/WHERE { GRAPH //<http://NCIT_NG1> <http://NCIT_NG1> WHERE {/

/?subject rdfs:subClassOf ?an ./

/?an owl:onProperty ?role ./

/?an owl:someValuesFrom ?object ./

/?subject rdfs:subClassOf* ncit:Gene/

/}/

/   }/
//

/ORDER BY _asc_(?subject) ;


/

/SELECT ?subject ?role ?object/

/WHERE { GRAPH //<http://NCIT_NG1> <http://NCIT_NG1> WHERE {/

/?subject rdfs:subClassOf ?an ./

/?an owl:onProperty ?role ./

/?an owl:someValuesFrom ?object ./

/?subject rdfs:subClassOf+ ncit:Gene/

/}/

/   }/
//

/ORDER BY _asc_(?subject) ;


/

/SELECT ?subject ?role ?object/

/WHERE { GRAPH //<http://NCIT_NG1> <http://NCIT_NG1> WHERE {/

/?subject rdfs:subClassOf ?an ./

/?an owl:onProperty ?role ./

/?an owl:someValuesFrom ?object ./

/?subject rdfs:subClassOf+ ncit:Gene/

/}/

/   }/
//

/ORDER BY _asc_(?subject)
LIMIT 50 ;
/

Kingsley /
/
>
>  
>
>  
>
> *From: *Kingsley Idehen <kide...@openlinksw.com>
> *Date: *Tuesday, October 11, 2016 at 6:17 PM
> *To: *"virtuoso-users@lists.sourceforge.net"
> <virtuoso-users@lists.sourceforge.net>
> *Subject: *Re: [Virtuoso-users] Problem with advanced queries
>
>  
>
> On 10/11/16 4:37 PM, Safran, Tracy (NIH/NCI) [C] wrote:
>
> I am having problems doing some slightly advanced queries against
> http.  A simple query works but other queries don’t.  Is there a
> deeper issue with permissions or indexes that I need to look into?
>
>  
>
> Example:  This works.
>
>  
>
> /SELECT * /
>
> /FROM <http://NCIT_NG1> <http://NCIT_NG1> where { ?s ?p ?o }
> LIMIT 50/
>
>  
>
> But this does not (note: prefix left out for brevity)
>
> /SELECT ?subject ?role ?object/
>
> /WHERE {/
>
> /?subject rdfs:subClassOf ?an ./
>
> /?an owl:onProperty ?role ./
>
> /?an owl:someValuesFrom ?object ./
>
> /?subject rdfs:subClassOf* ncit:Gene/
>
> /}/
>
> /ORDER BY _asc_(?subject)/
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>
>  
>
> I assume you are getting:
>
> Virtuoso 37000 Error TR...: transitive start not given  ?
>  
> You need to add some qualification to the query to optimize for
> unknowns such as db size and available memory.
>  
> Examples:
>  
> 1.
> http://dbpedia.org/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3AClass+.%0D%0A%3Fobject+a+owl%3AClass+.%0D%0A%3Fsubject+rdfs%3AsubClassOf*+%3Fobject+.+%0D%0A%0D%0Afilter+%28contains%28xsd%3Astring%28%3Fsubject%29%2C%27dbpedia.org%27%29%29%0D%0A%7D%0D%0A%0D%0AORDER+BY+asc%281%29%0D%0A%0D%0ALIMIT+100=text%2Fx-html%2Btr_redir_for_subjs=121_redir_for_hrefs==3=on
> -- DBpedia Static
>  
> 2.
> http://dbpedia-live.openlinksw.com/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3AClass+.%0D%0A%3Fobject+a+owl%3AClass+.%0D%0A%3Fsubject+rdfs%3AsubClassOf*+%3Fobject+.+%0D%0A%0D%0Afilter+%28contains%28xsd%3Astring%28%3Fsubject%29%2C%27dbpedia.org%27%29%29%0D%0A%7D%0D%0A%0D%0AORDER+BY+asc%281%29%0D%0A%0D%0ALIMIT+100=text%2Fx-html%2Btr_redir_for_subjs=121_redir_for_hrefs==3=on
> -- DBpedia Live
>  
> 3.
> http://lod.openlinksw.com/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3ACl

Re: [Virtuoso-users] Problem with advanced queries

2016-10-11 Thread Kingsley Idehen
On 10/11/16 4:37 PM, Safran, Tracy (NIH/NCI) [C] wrote:
>
> I am having problems doing some slightly advanced queries against
> http.  A simple query works but other queries don’t.  Is there a
> deeper issue with permissions or indexes that I need to look into?
>
>  
>
> Example:  This works.
>
>  
>
> /SELECT * /
>
> /FROM <http://NCIT_NG1> where { ?s ?p ?o } LIMIT 50/
>
>  
>
> But this does not (note: prefix left out for brevity)
>
> /SELECT ?subject ?role ?object/
>
> /WHERE {/
>
> /?subject rdfs:subClassOf ?an ./
>
> /?an owl:onProperty ?role ./
>
> /?an owl:someValuesFrom ?object ./
>
> /?subject rdfs:subClassOf* ncit:Gene/
>
> /}/
>
> /ORDER BY _asc_(?subject)/
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>

I assume you are getting:

Virtuoso 37000 Error TR...: transitive start not given  ? 

You need to add some qualification to the query to optimize for unknowns such 
as db size and available memory. 

Examples:

1. 
http://dbpedia.org/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3AClass+.%0D%0A%3Fobject+a+owl%3AClass+.%0D%0A%3Fsubject+rdfs%3AsubClassOf*+%3Fobject+.+%0D%0A%0D%0Afilter+%28contains%28xsd%3Astring%28%3Fsubject%29%2C%27dbpedia.org%27%29%29%0D%0A%7D%0D%0A%0D%0AORDER+BY+asc%281%29%0D%0A%0D%0ALIMIT+100=text%2Fx-html%2Btr_redir_for_subjs=121_redir_for_hrefs==3=on
 -- DBpedia Static

2. 
http://dbpedia-live.openlinksw.com/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3AClass+.%0D%0A%3Fobject+a+owl%3AClass+.%0D%0A%3Fsubject+rdfs%3AsubClassOf*+%3Fobject+.+%0D%0A%0D%0Afilter+%28contains%28xsd%3Astring%28%3Fsubject%29%2C%27dbpedia.org%27%29%29%0D%0A%7D%0D%0A%0D%0AORDER+BY+asc%281%29%0D%0A%0D%0ALIMIT+100=text%2Fx-html%2Btr_redir_for_subjs=121_redir_for_hrefs==3=on
 -- DBpedia Live 

3. 
http://lod.openlinksw.com/sparql?default-graph-uri==SELECT+distinct+%3Fsubject+%3Fobject%0D%0A%0D%0AWHERE+%7B%0D%0A%0D%0A%0D%0A%3Fsubject+a+owl%3AClass+.%0D%0A%3Fobject+a+owl%3AClass+.%0D%0A%3Fsubject+rdfs%3AsubClassOf*+%3Fobject+.+%0D%0A%0D%0Afilter+%28contains%28xsd%3Astring%28%3Fsubject%29%2C%27umbel%27%29%29%0D%0A%7D%0D%0A%0D%0AORDER+BY+asc%281%29%0D%0A%0D%0ALIMIT+100=text%2Fx-html%2Btr_redir_for_subjs=121_redir_for_hrefs==3=on
 -- massive 30 Billion+ LOD Cloud Cache

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Can delete "built in" Graphs?

2016-10-11 Thread Kingsley Idehen
On 10/11/16 11:34 AM, Pasquale Di Donato wrote:
> Dear all,
>
> considering a "fresh" installation of Virtuoso + the faceted browser,
> under "Linked Data --> Graphs --> Graphs" I see a list of "built in"
> graphs, e.g.:
>
> http://www.openlinksw.com/schemas/virtrdf#
>
> http://www.w3.org/ns/ldp#
>
> http://localhost:8890/sparql
>
> http://localhost:8890/DAV/
>
> http://www.w3.org/2002/07/owl#
>
> b3sonto
>
> b3sifp
>
> urn:rules.skos
>
> http://www.openlinksw.com/schemas/oplweb#
>
> virtrdf-label
>
> facets
>
> Are all these graphs needed or can I delete them/some of them?
>
> Many thanks for any feedback
>
> Pasquale

You can delete all but:

http://www.openlinksw.com/schemas/virtrdf#

http://www.w3.org/ns/ldp#

facets

virtrdf-label .

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] How to import a dump file

2016-10-11 Thread Kingsley Idehen
On 10/11/16 10:23 AM, Safran, Tracy (NIH/NCI) [C] wrote:
>
>  
>
> I dumped a an open-source virtuoso triplestore with 37 separate graphs
> using the dump_nquads command.  Now I would like to load the resulting
> nq files into another commercial instance of a virtuoso but the only
> load commands I find ask me to specify a graph name.  I would like the
> load to use the graph names that were saved into the dump file.  How
> can I do this?
>
>  
>
> Do I need to back up and dump the graphs in a different way.
>
>  
>
> Thank you,
>
>  
>
> Tracy M. Safran
>
> Programmer Analyst - EVS support
>
> Frederick National Laboratory for Cancer Research
>
> Leidos Biomedical Research, Inc.
>
> Ph: 240-276-5172
>
> tracy.saf...@fnlcr.nih.gov <mailto:tracy.saf...@fnlcr.nih.gov>
>
>  
>

Hi Tracy,


You can load data from nquad documents into Virtuoso.

Please read about how to bulk-load named-graph partitioned data from
nquad files into Virtuoso at:
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtBulkRDFLoader
.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this
: 
http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Nice Query Sharing Service from LinkedWiki folks

2016-09-15 Thread Kingsley Idehen
On 9/14/16 9:07 PM, Bernadette Hyland wrote:
> Thanks for sharing this Kingsley. 
>
> The LinkedWiki site has an easy to use UI and the section that
> provides sample data that one can cut & paste for their favorite dev
> language (SPARQL, Javascript, HTML, Matlab, Pyton, R, Ruby, PHP, etc),
> nice tool.
>
> A thought - the demo site may benefit from datasets that are more
> realistic for the scientific community or other consumers of
> distributed data. Five of 14 sample data sets relating to the  British
> Royals & their cousins are perhaps, not the stuff of science ;-)
>
> Thanks again,
>
> Bernadette Hyland
> CEO, 3 Round Stones, Inc.

Hi Bernadette,

That's the reasoning behind my call-out for others to contribute
additional demo queries :)


Kingsley
>
>
>
>> On Sep 15, 2016, at 08:45, Kingsley Idehen <kide...@openlinksw.com
>> <mailto:kide...@openlinksw.com>> wrote:
>>
>> All,
>>
>> The folks behind LinkedWiki have produced a great query sharing
>> service [1].
>>
>> I encourage everyone to share as many queries as possible. This is a
>> very easy mechanism for demonstrating the virtues of SPARQL and
>> Linked Data.
>>
>> [1] http://linkedwiki.com/searchExample.php
>>
>>
>> -- 
>> Regards,
>>
>> Kingsley Idehen 
>> Founder & CEO
>> OpenLink Software   (Home Page: http://www.openlinksw.com)
>>
>> Medium Blog: https://medium.com/@kidehen
>> Blogspot Blog: http://kidehen.blogspot.com
>> Twitter Profile: https://twitter.com/kidehen
>> Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
>> LinkedIn Profile: http://www.linkedin.com/in/kidehen
>> Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this
>>
>>
>


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] Nice Query Sharing Service from LinkedWiki folks

2016-09-14 Thread Kingsley Idehen
All,

The folks behind LinkedWiki have produced a great query sharing service [1].

I encourage everyone to share as many queries as possible. This is a
very easy mechanism for demonstrating the virtues of SPARQL and Linked Data.

[1] http://linkedwiki.com/searchExample.php


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Timeout when listing graphs

2016-09-12 Thread Kingsley Idehen
On 9/12/16 3:50 AM, Pantelis Natsiavas wrote:
> SPARQL SELECT distinct ?graph WHERE { GRAPH ?graph { ?s ?p ?o } };

Please try:

SPARQL SELECT distinct ?graph WHERE { GRAPH ?graph { ?s a ?o } };

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Out of curiosity, some questions about OpenSource Virtuoso settings

2016-09-11 Thread Kingsley Idehen
On 9/10/16 10:41 PM, giacom...@libero.it wrote:
> So, I have a bunch of questions about Virtuoso.
>
> * Are SPARQL queries performed concurrently (using the standard virtuoso.ini 
> configuration)?
Yes, Virtuoso is highly multi-threaded. In addition, it has vectorized
query execution i.e., many query batches per thread, handled concurrently .
> * Are Virtuoso transactions autocommittable, or there aren't any kind of 
> transactions when connecting to the ODBC driver?

Depends, by default you have Read Committed Isolation level.
> * Does Virtuoso automatically performs triple indexing before query data? 
No, it has indexes in place.

> In 
> some systems I have to configure it manually.
> * Does the usage of ODBC degradates the benchmarking of Virtuoso's SPARQL 
> query or the time required to store the triples within a given named graph?

No, if anything that's faster than HTTP.

Links:

[1] http://docs.openlinksw.com/virtuoso/isolation/
[2]
http://wikis.openlinksw.com/VirtuosoWikiWeb/ChangeVirtuosoSDefaultTransactionIsolationLevel
[3] http://docs.openlinksw.com/virtuoso/fn_log_enable.html
[4]
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtRDFPerformanceTuning

[5]
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtBulkRDFLoader#Running
multiple Loaders


Kingsley

>
> Thanks in advance for any support,
>> JackB
> --
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Issue with sending a SPARQL request

2016-08-24 Thread Kingsley Idehen
  VDB
X-SPARQL-default-graph: http://dbpedia.org
Expires: Wed, 31 Aug 2016 16:09:26 GMT
Cache-Control: max-age=604800
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers:
DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Accept-Encoding
Accept-Ranges: bytes


  
s1
s2
  
  
http://dbpedia.org/resource/Pierre_and_Marie_Curie_University;>http://dbpedia.org/resource/Pierre_and_Marie_Curie_University
"Pierre and Marie Curie University"@en
  
  
http://dbpedia.org/resource/Polytech'Paris-UPMC">http://dbpedia.org/resource/PolytechParis-UPMC
"PolytechParis-UPMC"@en
  



And this for JSON:

curl -i
"http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+%3Fs1%2where+%7B+%7B%0D%0Aselect+%3Fs1%2C+%3Fs2+where+%7B%0D%0A%3Fs1+%3Fx+%3Fo1+.%0D%0A%3Fo1+bif%3Acontains+%27+%28+%22Pierre%22+AND+%22Marie%22+AND+%22Curie%22+AND+%22University%22+AND+%22UPMC%22+%29+%27+option+%28+score+%3Fsc+%29+.%0D%0A%3Fs1+rdfs%3Alabel+%3Fs2+.%0D%0A%3Fs1+rdf%3Atype+dbo%3AEducationalInstitution+.+%7D%0D%0Aorder+by+desc+%28+%3Fsc+*+3e-1+%2B+sql%3Arnk_scale+%28+%3CLONG%3A%3AIRI_RANK%3E+%28+%3Fs1+%29+%29+%29%0D%0Alimit+100+%7D+.%0D%0AFILTER+%28lang%28%3Fs2%29+%3D+%22en%22%29+%7D%0D%0Alimit+2=application%2Fsparql-results%2Bjson_redir_for_subjs=121_redir_for_hrefs==3=on;

HTTP/1.1 200 OK
Date: Wed, 24 Aug 2016 16:11:04 GMT
Content-Type: application/sparql-results+json
Content-Length: 490
Connection: keep-alive
Server: Virtuoso/07.20.3217 (Linux) i686-generic-linux-glibc212-64  VDB
X-SPARQL-default-graph: http://dbpedia.org
Expires: Wed, 31 Aug 2016 16:11:04 GMT
Cache-Control: max-age=604800
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers:
DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Accept-Encoding
Accept-Ranges: bytes


{ "head": { "link": [], "vars": ["s1", "s2"] },
  "results": { "distinct": false, "ordered": true, "bindings": [
{ "s1": { "type": "uri", "value":
"http://dbpedia.org/resource/Pierre_and_Marie_Curie_University; },
"s2": { "type": "literal", "xml:lang": "en", "value": "Pierre and Marie
Curie University" }},
{ "s1": { "type": "uri", "value":
"http://dbpedia.org/resource/Polytech'Paris-UPMC" }, "s2": { "type":
"literal", "xml:lang": "en", "value": "Polytech'Paris-UPMC" }} ] } }


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] How I make an inference in Virtuoso?

2016-08-16 Thread Kingsley Idehen
On 8/16/16 3:08 PM, Eng.Bassam wrote:
>
>
> Thanks Kingsley,
> But the query1 doesn't make an inference
> DEFINE input:inference 'urn:owl:inference:rules:tests'
> PREFIX rel: <http://purl.org/vocab/relationship/>
>
> SELECT *
> FROM 
>
> WHERE
> {
> <http://dbpedia.org/resource/Elizabeth_Bowes-Lyon>
> rel:ancestorOf
> ?o
> }
>
>
>
> I think the query must return :
> <http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom>
> <http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom>
> <http://dbpedia.org/resource/Charles,_Prince_of_Wales>
> <http://dbpedia.org/resource/Prince_William_of_Wales>
> but it returns only:
> <http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom>
>
> Why an inference not working properly??
>
>
>
> On Tue, Aug 16, 2016 at 9:01 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 8/16/16 9:16 AM, Eng.Bassam wrote:
>> Hi
>>
>> Suppose I have an ontology for fruits:
>> Bana is Fruit.
>> Apple is Fruit.
>>
>> Also suppose I have other dataset that contains:
>>
>> Bassam eat Apple.
>> Husam eat Banana.
>>
>> Can I do following question (SPARQL query) using Virtuoso, Who
>> eat Fruits?
>> the answer must be Bassam and Husam, because there is an
>> inference (Banana and Apple are fruits)
>>
>> Thanks
>>
>> -- 
>> ---
>> > Eng.Bassam Najeeb.
>> >Software Engineer.
>
> Please read about reasoning and inference pragma use in the
> example at [1].
>
> Note: my demos are live and sometimes the underlying data might
> change which can affect expected results, but in this case the
> post will show you how to map your RDF statements to an Inference
> Rule which then apply in-built reasoning on RDF Schema and most
> OWL relationship type semantics.
>
> For your example, I sense you are looking for Custom Inference
> Rules. If so, then you should look at [2] which demonstrates this
> feature. That said, the feature is part of Virtuoso 8.0 (which are
> are about to release, but in Commercial Edition mode only for this
> feature).
>
> Links:
>
> [1]
> 
> https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419
> 
> <https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419>
> [2]
> 
> https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen
> 
> <https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen>
>
> Kingsley
>

Yes, you are correct in your observation. Issue is that on my live
servers changes can sometimes happen e.g., rules being lost or location
of Relationship Ontology Data (the case here). You can see the live
rules via [1].

I've fixed the problem as per [2]

Here's what I applied to URIBurner with regards to the problem you
discovered:

SPARQL CLEAR GRAPH <http://purl.org/vocab/relationship/> ;

SPARQL LOAD <http://vocab.org/relationship/rel-vocab-20100607.rdf> INTO
<http://purl.org/vocab/relationship/> ;

SPARQL

SELECT *
FROM <http://purl.org/vocab/relationship/>
WHERE { ?s ?p ?o };

rdfs_rule_set
  ( 'urn:relationships:ontology:inference:rules' ,
'http://purl.org/vocab/relationship/'
  ) ;


Thanks for your feedback as this problem would have been lingering out
there forever :(


Links:

[1] http://linkeddata.uriburner.com/sparql/rdfinf.vsp

[2]
http://linkeddata.uriburner.com/sparql?default-graph-uri==SELECT+*%0D%0AFROM+%3Curn%3Aroyals%3Ademo%3E%0D%0AWHERE%0D%0A%0D%0A%7B%0D%0A++%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FElizabeth_Bowes-Lyon%3E%0D%0A++rel%3AancestorOf%2B+%3Fo%0D%0A%0D%0A%7D==text%2Fhtml_redir_for_subjs=121_redir_for_hrefs==3000
 
-- Correct solution based on Inference Context being enabled.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] Reasoning & Inference in Virtuoso

2016-08-16 Thread Kingsley Idehen
erson a <#RoyalPerson> ;
<#hasCousin> ?hasCousin
   } ;


-- Test 6

SPARQL

DEFINE input:macro-lib  
PREFIX  rel:  <http://purl.org/vocab/relationship/>

WITH 
SELECT ?s as ?ancestor
   ?descendant
WHERE { ?s a <#RoyalPerson> ;
   rel:ancestorOf ?descendant
  };


-- Test 7

SPARQL

DEFINE input:macro-lib  
PREFIX  rel:  <http://purl.org/vocab/relationship/>

WITH 
SELECT DISTINCT *
  
WHERE {
{ ?parent a <#RoyalPerson> ; rel:parentOf ?parentOf .}
   
UNION
   
{ ?person a foaf:Person; <#hasAuntie> ?hasAuntie .}
   
UNION
   
{ ?person a foaf:Person; <#hasUncle> ?hasUncle .}
   
UNION
   
{ ?person a foaf:Person; <#hasCousin> ?hasCousin .}
   
UNION
   
{ ?person a foaf:Person; rel:siblingOf ?hasSibling . }
   
UNION
  
{ ?person a foaf:Person; rel:ancestorOf ?hasDescendant . }


  } ;
 
COMMIT WORK ;


Links:

[1]
https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419
[2]
https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] How I make an inference in Virtuoso?

2016-08-16 Thread Kingsley Idehen
On 8/16/16 9:16 AM, Eng.Bassam wrote:
> Hi
>
> Suppose I have an ontology for fruits:
> Bana is Fruit.
> Apple is Fruit.
>
> Also suppose I have other dataset that contains:
>
> Bassam eat Apple.
> Husam eat Banana.
>
> Can I do following question (SPARQL query) using Virtuoso, Who eat Fruits?
> the answer must be Bassam and Husam, because there is an inference
> (Banana and Apple are fruits)
>
> Thanks
>
> -- 
> ---
> > Eng.Bassam Najeeb.
> >Software Engineer.

Please read about reasoning and inference pragma use in the example at [1].

Note: my demos are live and sometimes the underlying data might change
which can affect expected results, but in this case the post will show
you how to map your RDF statements to an Inference Rule which then apply
in-built reasoning on RDF Schema and most OWL relationship type semantics.

For your example, I sense you are looking for Custom Inference Rules. If
so, then you should look at [2] which demonstrates this feature. That
said, the feature is part of Virtuoso 8.0 (which are are about to
release, but in Commercial Edition mode only for this feature).

Links:

[1]
https://medium.com/virtuoso-blog/using-british-royal-family-data-snippets-to-demonstrate-sparql-query-language-based-reasoning-56626a152419
[2]
https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen

Kingsley
>
>
>
> --
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Medium Blog: https://medium.com/@kidehen
Blogspot Blog: http://kidehen.blogspot.com
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Replication on a schedule

2016-06-13 Thread Kingsley Idehen
On 6/13/16 9:59 AM, Davis, Daniel (NIH/NLM) [C] wrote:
> I figured out how I could make it work, anyway.   Such "replication on a 
> schedule" is not usually the way that database replication works, and I'm not 
> sure I should try to make it work this way.  

When using Replication (be it Single-Server or Cluster Editions) the
focal points of configuration are:

[1] Publications -- this is where you identify named graphs or SQL
tables to be replicated

[2] Replication Modality -- this is where to select what kind of
replication you seek: transactional, incremental, snapshot

[3] Replication Schedule -- bar transactional (which is depends on
transaction logs and checkpoint intervals) you can schedule intervals
for snapshot and incremental replication modalities.


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Limiting access to /describe based on Graph security settings

2016-05-24 Thread Kingsley Idehen
On 5/24/16 4:46 PM, Kingsley Idehen wrote:
> On 5/20/16 3:35 PM, Efimov, Alexander wrote:
>>
>> Hi,
>>
>>  
>>
>> I’m trying to limit access to /describe in Faceted Browser based on
>> graph security configuration in VOS.
>>
>> Initially everything works because nobody has access to it.
>>
>> However, when I create some data in
>> <http://localhost:8890/AliceDemo>http://localhost:8890/AliceDemo
>> graph and provide read access to DemoAlice user on that graph,
>>
>> Faceted Browser doesn’t show anything in search or describe.
>>
>
> Yes, by default that's correct.
>
>> I’ve browsed through sources and found there are places where uid of
>> nobody is used by default.
>>
>> Some hardcoding of DemoAlice user id in those places allowed me to
>> get /describe page opened for URI I passed as a parameter.
>>
>> However, no triples where object with IRI is the subject are
>> displayed. As soon as I enable access to nobody, I get all the
>> triples displayed on /describe page.
>>
>> This leads to the question.
>>
>> Is there a way to set it up in VOS so that if user is nobody, logon
>> screen is displayed and /describe page is built in the context of
>> logged in user?
>>
>
> Ultimately, not with the VOS edition. Fine-grained access controls are
> part of the commercial edition.
> You are able to create ACLs scoped to the use of Faceted Browsing
> service distinct from ACLs scoped to Named Graph access via SPARQL.
>
>> How do I ensure that exec(…) function is executing under specific
>> (even hardcoded) user which is not ‘nobody’?
>>
> In regards to VOS, you can disable read access to 'nobody' but then
> you have to grant access to specific users which amounts to using a
> ROLE account for privileged users which will ultimately not satisfy
> the fidelity of fine-grained ACLs constructed using RDF statements.
>
> Run:
>
>
> DB.DBA.RDF_ALL_USER_PERMS_DEL ('nobody') ;
>
> DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('nobody', 0, 0);
>
> DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('{some-role-account}', 15, 0);
>
> -- Graph Security Integrity Check
>
> RDF_GRAPH_SECURITY_AUDIT ( 0 ) ;
>
>
> To see the effects of what the commercial edition offers you can
> lookup the following:
>
> [1] http://tinyurl.com/hj9rjeq -- SPARQL Query Results page where the
> query targets entity relationships in a protected
>   Named Graph that's only accessible
> to specific Users identified
>   by a WebID (HTTP URI or Hyperlink
> that identifies a Person, Organization, or Software Agent)
>   i.e., specific WebID ACL for
>  .
>
> [2] http://tinyurl.com/hss58dw -- SPARQL Query Results page where the
> query targets entity relationships
>   in a protected Named Graph that's
> only accessible to
>   Users authenticated via any of the
> presented protocols i.e., NetIDs Condition
>   Group ACL for
>  .
>
> Links:
>
> [1]
> http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/WebIDTLSDelegationWhatWhyHow
> [2]
> https://www.linkedin.com/pulse/data-virtualization-lakes-semantics-security-kingsley-uyi-idehen
> -- recent post related to this matter.
>
> Kingsley 

Little correction to the example links above:


[1] http://tinyurl.com/hj9rjeq -- *Faceted Browser page *where the query
targets entity relationships in a protected
  database (a/k/a Named Graph or
Document) that's only accessible to specific Users identified
  by a WebID (HTTP URI or Hyperlink that
identifies a Person, Organization, or Software Agent)
  i.e., specific WebID ACL for
 .

[2] http://tinyurl.com/hss58dw -- *Faceted Browser page* where the query
targets entity relationships
      in a protected database (a/k/a Named
Graph or Document) that's only accessible to
  specific Users authenticated via any
of the presented protocols i.e., NetIDs Condition
  Group ACL for
 .


In the case of #1, when you click on an entity URI the effects of ACLs
on its named graph kick in.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin

Re: [Virtuoso-users] Limiting access to /describe based on Graph security settings

2016-05-24 Thread Kingsley Idehen
On 5/20/16 3:35 PM, Efimov, Alexander wrote:
>
> Hi,
>
>  
>
> I’m trying to limit access to /describe in Faceted Browser based on
> graph security configuration in VOS.
>
> Initially everything works because nobody has access to it.
>
> However, when I create some data in
> <http://localhost:8890/AliceDemo>http://localhost:8890/AliceDemo graph
> and provide read access to DemoAlice user on that graph,
>
> Faceted Browser doesn’t show anything in search or describe.
>

Yes, by default that's correct.

> I’ve browsed through sources and found there are places where uid of
> nobody is used by default.
>
> Some hardcoding of DemoAlice user id in those places allowed me to get
> /describe page opened for URI I passed as a parameter.
>
> However, no triples where object with IRI is the subject are
> displayed. As soon as I enable access to nobody, I get all the triples
> displayed on /describe page.
>
> This leads to the question.
>
> Is there a way to set it up in VOS so that if user is nobody, logon
> screen is displayed and /describe page is built in the context of
> logged in user?
>

Ultimately, not with the VOS edition. Fine-grained access controls are
part of the commercial edition.
You are able to create ACLs scoped to the use of Faceted Browsing
service distinct from ACLs scoped to Named Graph access via SPARQL.

> How do I ensure that exec(…) function is executing under specific
> (even hardcoded) user which is not ‘nobody’?
>
In regards to VOS, you can disable read access to 'nobody' but then you
have to grant access to specific users which amounts to using a ROLE
account for privileged users which will ultimately not satisfy the
fidelity of fine-grained ACLs constructed using RDF statements.

Run:


DB.DBA.RDF_ALL_USER_PERMS_DEL ('nobody') ;

DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('nobody', 0, 0);

DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('{some-role-account}', 15, 0);

-- Graph Security Integrity Check

RDF_GRAPH_SECURITY_AUDIT ( 0 ) ;


To see the effects of what the commercial edition offers you can lookup
the following:

[1] http://tinyurl.com/hj9rjeq -- SPARQL Query Results page where the
query targets entity relationships in a protected
  Named Graph that's only accessible to
specific Users identified
  by a WebID (HTTP URI or Hyperlink that
identifies a Person, Organization, or Software Agent)
  i.e., specific WebID ACL for
 .

[2] http://tinyurl.com/hss58dw -- SPARQL Query Results page where the
query targets entity relationships
  in a protected Named Graph that's only
accessible to
  Users authenticated via any of the
presented protocols i.e., NetIDs Condition
  Group ACL for
 .

Links:

[1]
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/WebIDTLSDelegationWhatWhyHow
[2]
https://www.linkedin.com/pulse/data-virtualization-lakes-semantics-security-kingsley-uyi-idehen
-- recent post related to this matter.

Kingsley
>
>  
>
> Thank you.
>
>  
>
> Best regards,
>
> Alexander Efimov.
>
>  
>
>
>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Limit access to Faceted Search

2016-04-13 Thread Kingsley Idehen
On 4/13/16 1:56 AM, rene@kws.com wrote:
> Hello
>
> Thanks for your answer. I am already familiar with graph security but what is 
> still unclear to me is what user is used for the faceted search. Since no 
> login is required and all graphs are visible via the search I assume it is 
> dba? Is there are way to change this?
>
> - René

You solve this problem by adding name graphs to be protected to a graph
group for protected named graphs.

Making a Named Graph Private (i.e., inaccessible to user 'nobody' which
identifies the unidentified service user):

-- Clearout perms set for 'nobody'

DB.DBA.RDF_ALL_USER_PERMS_DEL ('nobody') ;

DB.DBA.RDF_GRAPH_GROUP_INS
('http://www.openlinksw.com/schemas/virtrdf#PrivateGraphs','{named-graph-iri')
;

-- Ensure 'nobody' doesn't have access to protected / private named graphs

-- Read privileges for 'nobody' on 'world' named graphs where "1" is for
private graphs

DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('nobody', 0, 1);

-- Grant Read privileges for 'nobody' on publicly accessible ('world') 
named graphs where "0" is for public graphs

DB.DBA.RDF_DEFAULT_USER_PERMS_SET ('nobody', 7, 0);


-- Graph Security Integrity Check

RDF_GRAPH_SECURITY_AUDIT ( 0 ) ;


Kingsley
>
>> -Ursprüngliche Nachricht-
>> Von: Kingsley Idehen [mailto:kide...@openlinksw.com]
>> Gesendet: Dienstag, 12. April 2016 20:43
>> An: virtuoso-users@lists.sourceforge.net
>> Betreff: Re: [Virtuoso-users] Limit access to Faceted Search
>>
>> On 4/12/16 10:48 AM, rene@kws.com wrote:
>>> Hello
>>>
>>> Is it possible to limit the access to the faceted search based on user 
>>> login?
>> Ideally, the search would only display results from graphs the user has read
>> access to.
>>> I am using the commercial edition of Virtuoso and only the Conductor and fct
>> VADs are installed. There are already some graphs and users in place. The 
>> /sparql
>> endpoint is disabled and only /sparql-auth is available. Nevertheless, /fct 
>> shows all
>> data without login...
>>> Best regards
>>> René
>>>
>>> -- Dr. René Rex - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> - - - - - - - - - - - - - - - - - Bioinformatician, RD-DM
>>> Bioinformatics KWS SAAT SE, Grimsehlstraße 31, 37555 Einbeck Tel. +49
>>> (0) 5561/311-1341   Fax +49 (0) 5561/311-1063 E-Mail: rene@kws.com
>>> http://www.kws.com KWS SAAT SE Chairman of the Supervisory Board |
>>> Vorsitzender des Aufsichtsrates: Andreas J. Büchting Executive Board |
>>> Vorstand: Hagen Duenbostel (CEO | Sprecher), Léon Broers, Peter
>>> Hofmann, Eva Kienle Company Headquarters | Sitz der Gesellschaft:
>>> Einbeck Registry Court | Registergericht: Göttingen, HRB 204567 - - -
>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> - - - - - -
>> Hi Rene,
>>
>> You need to use Graph Security to control access to named graphs [1], in the
>> most basic sense. Ultimately, you need fine-grained attribute-based access
>> controls which is part of the commercial edition product.
>>
>> [1]
>> http://docs.openlinksw.com/virtuoso/rdfgraphsecurity.html#rdfgraphsecuritylevel
>> [2]
>> http://www.slideshare.net/kidehen/how-virtuoso-enables-attributed-based-access-
>> controls
>> .
>>
>> --
>> Regards,
>>
>> Kingsley Idehen
>> Founder & CEO
>> OpenLink Software
>> Company Web: http://www.openlinksw.com
>> Personal Weblog 1: http://kidehen.blogspot.com Personal Weblog 2:
>> http://www.openlinksw.com/blog/~kidehen
>> Twitter Profile: https://twitter.com/kidehen
>> Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
>> LinkedIn Profile: http://www.linkedin.com/in/kidehen
>> Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this
>>
>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.ope

Re: [Virtuoso-users] Limit access to Faceted Search

2016-04-12 Thread Kingsley Idehen
On 4/12/16 10:48 AM, rene@kws.com wrote:
> Hello
>
> Is it possible to limit the access to the faceted search based on user login? 
> Ideally, the search would only display results from graphs the user has read 
> access to.
>
> I am using the commercial edition of Virtuoso and only the Conductor and fct 
> VADs are installed. There are already some graphs and users in place. The 
> /sparql endpoint is disabled and only /sparql-auth is available. 
> Nevertheless, /fct shows all data without login...
>
> Best regards
> René
>
> -- Dr. René Rex - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - Bioinformatician, RD-DM
> Bioinformatics KWS SAAT SE, Grimsehlstraße 31, 37555 Einbeck Tel. +49
> (0) 5561/311-1341   Fax +49 (0) 5561/311-1063 E-Mail: rene@kws.com
> http://www.kws.com KWS SAAT SE Chairman of the Supervisory Board |
> Vorsitzender des Aufsichtsrates: Andreas J. Büchting Executive Board |
> Vorstand: Hagen Duenbostel (CEO | Sprecher), Léon Broers, Peter
> Hofmann, Eva Kienle Company Headquarters | Sitz der Gesellschaft:
> Einbeck Registry Court | Registergericht: Göttingen, HRB 204567 - - -
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - -

Hi Rene,

You need to use Graph Security to control access to named graphs [1], in
the most basic sense. Ultimately, you need fine-grained attribute-based
access controls which is part of the commercial edition product.

[1]
http://docs.openlinksw.com/virtuoso/rdfgraphsecurity.html#rdfgraphsecuritylevel
[2]
http://www.slideshare.net/kidehen/how-virtuoso-enables-attributed-based-access-controls
.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] obtaining a copy/dump of an online SPARQL endpoint in a nice manner

2016-04-01 Thread Kingsley Idehen
On 4/1/16 9:02 AM, Jörn Hees wrote:
> On 31 Mar 2016, at 22:10, Kingsley Idehen <kide...@openlinksw.com> wrote:
>> How are you arriving at data devoid or metadata about its origins?
> Link rot... Endpoint is still working, dumps aren't...

Example please.

>
>
>> You would be better served, ultimately, instantiating a dedicated
>> Virtuoso instance in the cloud for your specific needs. This instance
>> could load datasets from wherever, using some of the existing endpoints
>> (DBpedia and others) as a mechanism for exposing provenance data etc..
> How would i do that? I'm not sure i fully understand... We have a Virtuoso 
> instance in our local network for our working group already.

You could make a pre-configured DBpedia instance, or LOD the same
datasets we have in our LOD Cloud cache etc..
> I usually manually load it with the dumps of datasets i want to run my 
> algorithms against so i don't impede the public endpoints operations / get 
> blocked for doing too many requests.
>
>
>> There is no nice way of trying to dump all the data from an existing
>> SPARQL endpoint.
> If there is no nice way, is there any way at all?

There is a slow way using OFFSET and LIMIT with smaller sizes that what
you had in the initial post. 
>
> I mean I can't be the first one who is interested in all triples a graph on a 
> remote endpoint contains (even if that graph is big).

You need to be more specific about the data you seek and from what
endpoint & repository combo it's currently visible etc..



>
>
> Best,
> Jörn
>
>


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] obtaining a copy/dump of an online SPARQL endpoint in a nice manner

2016-03-31 Thread Kingsley Idehen
On 3/31/16 1:30 PM, Jörn Hees wrote:
> Hi,
>
> i developed some machine learning algorithms that i'd like to run against 
> various datasets.
> Many of them provide Virtuoso powered SPARQL endpoints online, but running my 
> algorithms against them would for sure not be considered "fair use".
>
> Some datasets provide dumps, so i'm able to play nice, load the dumps on a 
> local Virtuoso instance and torture that local instance with my algorithms.
>
> How can i do something similar in case there is no dump available for 
> download, but only a SPARQL endpoint?
>
> I was thinking about issuing a `construct where { ?s ?p ?o } limit X offset 
> Y` and stepping through the endpoint like that once, but the bigger the 
> offset, the slower the response time:
>
> http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org=select+*+where+{%3Fs+%3Fp+%3Fo.}+limit+1+offset+40002=text%2Fhtml_redir_for_subjs=121_redir_for_hrefs==3=on
>
> Any suggestions how to improve this and do this in a "nice" way?
> Also maybe without the danger of skipping a lot of data by different orders?
>
> Best,
> Jörn

How are you arriving at data devoid or metadata about its origins?

You would be better served, ultimately, instantiating a dedicated
Virtuoso instance in the cloud for your specific needs. This instance
could load datasets from wherever, using some of the existing endpoints
(DBpedia and others) as a mechanism for exposing provenance data etc..

There is no nice way of trying to dump all the data from an existing
SPARQL endpoint.

Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


[Virtuoso-users] OpenLink Structured Data Editor -- Update

2016-03-19 Thread Kingsley Idehen
All,

We've finally knocked up an initial Web Site containing a collection of
documents that describe our Structured Data Editor (OSDE). As should be
expected, the page includes Structured Data created using the Editor  :)

New Features:

[1] Adding cut & paste as a direct input option for Turtle content
[2] Web Service API for loose integration with other services.

Links:

[1] http://osde.openlinksw.com .
[2] http://osde.openlinksw.com/#UsageScreencasts -- Some Usage Demos
[3] http://linkeddata.uriburner.com/rdf-editor  -- Live Instance .

Enjoy!

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-04 Thread Kingsley Idehen
On 3/4/16 3:12 AM, Nolle, Andreas wrote:
>
> Dear Kingsley,
>
>  
>
> were you able to reproduce the mentioned behavior regarding the long
> evaluation time?
>
> Did you find any reason for that?
>
>  
>
> Best regards
>
> Andy
>
>  
>
>  

It is being looked into by the development and support teams, as
indicated by responses from Hugh.

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Kingsley Idehen
On 3/2/16 9:30 AM, Nolle, Andreas wrote:
>
> Dear Kingsley,
>
>  
>
> thanks for your reply.
>
>  
>
> The overall triple counts of each instance is
>
>   - Virtuoso instance running at port 8891: 17765873 triples
>
>   - Virtuoso instance running at port 8893: 27897291 triples
>
>   - Virtuoso instance running at port 8895: 16956 triples
>
>   - Virtuoso instance running at port 8899: 72372256 triples
>
>  
>
> If you are interested in the ini files, you can find the current
> versions at
> https://www.dropbox.com/s/awdx744vomsb5vr/virtuoso_ini.zip?dl=0
>
>  
>
> For profiling I just used simple the test queries such that it is
> probably easier to find out the problem. By doing so, I came to the
> assumption that especially the size of the result set causes really
> long query evaluation time:
>
> If I run q1:
>
>SELECT ?x ?b
>
>WHERE {
>
>   SERVICE <http://141.87.4.8:8891/sparql> {
>
>  ?x <http://swrc.ontoware.org/ontology#edition> ?b .
>
>   } .
>
>}
>
> at lets say Virtuoso instance running at port 8895 it will end up
> within 2 minutes. This is because the service call will return only
> 32562 results.
>
>  
>
> But if I run q2:
>
>SELECT ?x ?b
>
>WHERE {
>
>   SERVICE <http://141.87.4.8:8891/sparql> {
>
>  ?x <http://swrc.ontoware.org/ontology#pages> ?b .
>
>   } .
>
>}
>
> where the service call returns 313421 results, the query evaluation on
> the same instance (running at port 8895) will take something around 1
> hour!
>
>  
>
> The corresponding explain and profile plans of those queries can be
> found at https://www.dropbox.com/s/ein0hxhtgk85ci9/analysis_files.zip?dl=0
>
> Please notice that *_federated means the queries are like above and
> are evaluated at the Virtuoso instance running at port 8895, and
> *_local means the evaluation of these queries (without SERVICE) at the
> Virtuoso instance running at port 8891.
>
>  
>
> On analyzing the long evaluation times, especially for q2 in the
> federated case, I found out that if q2 is for example evaluated at
> Virtuoso instance running at port 8895 and the Virtuoso instance
> running at port 8891 is shut downed after 5 minutes, the query
> evaluation still proceeds and ended after more than one hour with the
> same number of results (313421) as e.g. in the local evaluation.
>
>  
>
> Please let me know if you need any other information.
>
>  
>
> Best regards
>
> Andy
>

Andy,

Okay I think we have enough information to work with.



-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] infrequent errors on parallel querying

2016-03-02 Thread Kingsley Idehen
On 3/2/16 4:24 AM, Nolle, Andreas wrote:
>
> Hi Hugh,
>
>  
>
> this was also my first guess, but the network is not the problem. This
> is definitively the case because I’ve evaluated again q2
>
>SELECT ?x ?b
>
>WHERE {
>
>   SERVICE <http://141.87.4.8:8891/sparql> {
>
>  ?x <http://swrc.ontoware.org/ontology#pages> ?b .
>
>   } .
>
>}
>
> at Virtuoso instance running at port 8895 and SHUTDOWN the Virtuoso
> instance running at port 8891 after 5 minutes.
>
> The query evaluation hat still proceed and ended after more than one
> hour with the same number of results (313421).
>
> At that it doesn’t matter if the query is executed via isql or via the
> SPARQL interface (locally AND remote).
>
>  
>
> So for me it seems like a bug, because the Virtuoso at 8895 takes one
> hour despite the fact that no additional join or any other operation
> has to be done.
>
>  
>
> Best
>
> Andy
>

Andy,

There are a lot of factors that could come into play here. If you
haven't already done so, please provide query and result times for
queries against each of the individual instances in this SPARQL-FED
query. The goal would be to at least eliminate any local issues.

Also shed some light on the triple count per each of these instances.

Ultimately we have a network or query optimizer issue in play, we just
need a productive route to determining which of these it is..

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] SPATIAL JOIN queries in Virtuoso

2016-02-24 Thread Kingsley Idehen
On 2/24/16 3:11 PM, Maria Jackson wrote:
> Dear Kingsley,
>
> I am afraid, I did see
> http://kidehen.blogspot.com/2014/02/geospatial-querying-over-linked-open.html.
> But I am unable to understand as to why myself and Mr. Hugh are
> getting errors with querying spatial data. Can you please help me
> understand as to where am I going wrong?

Can you try your example using data from our LOD [1] or DBpedia [2] 
instances? Or a URL against your instance if online.

[1] http://dbpedia.org/sparql
[2] http://lod.openlinksw.com/sparql

Kingsley
>
> On Thu, Feb 25, 2016 at 1:25 AM, Kingsley Idehen <kide...@openlinksw.com> 
> wrote:
>> On 2/24/16 10:31 AM, Hugh Williams wrote:
>>> Hi Maria,
>>>
>>> The following slide on that tutorial shows how to find place within a given 
>>> proximity of each other:
>>>
>>>   
>>> http://virtuoso.openlinksw.com/tutorials/sparql/SPARQL_Tutorials_Part_10/SPARQL_Tutorials_Part_10.html#(6)
>>
>> seeAlso:
>>
>> [1]
>> http://kidehen.blogspot.com/2014/02/geospatial-querying-over-linked-open.html
>>
>>
>> --
>> Regards,
>>
>> Kingsley Idehen
>> Founder & CEO
>> OpenLink Software
>> Company Web: http://www.openlinksw.com
>> Personal Weblog 1: http://kidehen.blogspot.com
>> Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
>> Twitter Profile: https://twitter.com/kidehen
>> Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
>> LinkedIn Profile: http://www.linkedin.com/in/kidehen
>> Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this
>>
>>
>>
>> --
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
>> ___
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this




smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] SPARQL 1.1 Graph Store HTTP Protocol

2016-01-27 Thread Kingsley Idehen
On 1/27/16 2:29 AM, Erich Bremer wrote:
> On the link http://localhost:8890/sparql-graph-crud, I noticed the
> following text:
>
> "This page is designed to help you test support for SPARQL 1.1 Graph
> Store HTTP Protocol <http://www.w3.org/TR/sparql11-http-rdf-update> in
> OpenLink Virtuoso."
>
> Does this imply that SPARQL 1.1 Graph Store HTTP Protocol is only
> experimental in Virtuoso or is it actually fully supported?  - Erich

Erich,

That was meant to indicate the URL identified a SPARQL 1.1 Graph
Protocol endpoint :) Virtuoso has supported SPARQL Graph Protocol for a
long time.

Kingsley
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Not Giving up on HTML5/RDFa Import

2016-01-14 Thread Kingsley Idehen
es.
> Not sure if anyone can explain what's happening here.
>
>   * Even though the content type is text/html and explicitly defined
> as such in the HTML metatag, the file is being stored in webdav as
> the "application/xhtml+xml" content type
>

That's fine. Virtuoso is doing that .

>   * Even though I assigned dba as content owner, is is assigning dav
> as content owner
>

Yes, since 'dav' is the super-user in the Web Content Storage aspect of
Virtuoso.

>   * After the import que is run, two files are created and stored in
> DAV/home/dba/rdf_sink even though I select the option to store a
> single file: (verbs and urn_dav_home_dba_rdf_sink.RDF). If I
> access the verbs file in webdav it renders the html that was
> imported. If I click the urn_dav_home_dba_rdf_sink.RDF it is not
> available. Note: the verbs file is being stored
> as "application/xhtml+xml" content type and
> the urn_dav_home_dba_rdf_sink.RDF is being stored as text/xml in
> webdav.
>

These folders shouldn't have anything to do with your import job,
certainly not at this stage.

>
> After all of this I decided to check and see if I could load the
> HTML5/RDFa document using isql-v:
>
> SQL> DB.DBA.RDF_LOAD_RDFA
> (http_get('http://xapi.vocab.pub/datasets/adl/verbs/'
> <http://xapi.vocab.pub/datasets/adl/verbs/%27>),
> 'http://xapi.vocab.pub/datasets/adl/verbs/#',
> 'http://xapi.vocab.pub/datasets/adl/verbs'
> <http://xapi.vocab.pub/datasets/adl/verbs%27>);
>
> This worked and the graph and triples are in the database. However,
> for team collaboration it would be helpful for others to see the
> stored imports and crawler jobs in the conductor interface rather than
> strictly relying on isql-v to populate the data store.

Yes.

You can even make a DET folder type that's mapped to target named graph
with the option to invoke the HTML sponger cartridge. Net effect: a
so-called Data Lake of documents (variety of content formats) imported
from the Web (or any internal HTTP network) and also passed through the
sponger which deposits output into designated named graph.

You can access these files via your browser or any WebDAV client (i.e.,
mount to any native OS via its WebDAV support) . You can share URIs via
copy & paste of "share feature" that exists in your browser etc..

> Am I doing something wrong in trying to get HTML5/RDFa content to
> import using conductor? I feel like I might be missing an important
> step that is preventing it from working. Thanks in advance.

Somewhere something has gone wrong or this is an undiscovered VOS
edition quirk.

We are leaning towards removing these features from VOS as its best
suited as a dedicated store for data represented as SQL Tables or RDF
Property Graphs.  Thus, you are really going to be much better off using
the commercial edition.


Kingsley

>
> Regards,
>
> J Haag
>
>
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] inference queries ?

2016-01-10 Thread Kingsley Idehen
On 1/9/16 9:56 PM, Eng.Bassam wrote:
> Hi
> may be my question out of virtuoso, I don't know, wish someone answer
> me and thanks :)
>
> is there any way to make inference queries in SPARQL, i.e may be I
> have an ontology that have A is subclass from B also C owl:sameAS D
>
> how can I make inference queries? 
> get all B classes this will return also A classes (inheritance).
> get all D classes this will return also D classes (owl:sameAS) 
>
> thanks
>
> -- 
> ---
> > Eng.Bassam Najeeb.
> >Software Engineer.

I've written a number of posts about this matter. Basically, Virtuoso
has in-built ability to perform reasoning and apply inference to the
following entity relationship types (relations): owl:sameAs (explicit
equivalence), owl:InverseFunctionalProperty (inferred equivalence),
owl:equivalentClass, owl:equivalentProperty, owl:inverseOf,
owl:SymmetricProperty, rdfs:subClassOf, and rdfs:subPropertyOf.

When dealing with inheritance (subsumption) you have to use named graphs
that contains rdfs:subClassOf, rdfs:subPropertyOf, owl:inverseOf,
owl:equiventClass, or owl:equivalentProperty as the basis for your
inference rule. Colloquially, graphs with Abox triples based on the
aforementioned relationship types need to be used as the basis for your
Virtuoso inference rules.

When dealing with inference based on owl:InverseFunctional or
owl:SymmetricProperty, you simply use an ontology that includes said
relations as the inference rules basis.

In the case of owl:sameAs, there is an in-built inference rule.

Links:

[1]
http://kidehen.blogspot.com/2014/01/demonstrating-reasoning-via-sparql.html
[2]
http://kidehen.blogspot.com/2014/02/class-equivalence-based-reasoning.html
[3] https://plus.google.com/+KingsleyIdehen/posts/711dfZYqGyA  -- 2011
post about use of inference & reasoning for DBpedia data cleansing .

Kingsley
>
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Make my views refer to external ontology?

2016-01-04 Thread Kingsley Idehen
On 1/4/16 10:28 AM, Eng.Bassam wrote:
> OK, so I will still using a temporary solution 
> Now when this bug will be fixed also I inform you a bug from 1 week
> about auto generated R2RML file (child and parent column) ??? also
>  How can I get notification these fixed ??
>
> thanks

Unfortunately, I can't give you a time right now as there are a number
of things we are working on. This entire matter has to be replicated
with a testsuite, fixed (if it is a bug), tested, and then released.

Current status: marked for further investigation.

Kingsley
>
> On Mon, Jan 4, 2016 at 4:52 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 1/4/16 4:52 AM, Eng.Bassam wrote:
>> Hi
>> I have tried this solution many times but unfortunately it's fail 
>> the generated IRI by virtuoso as
>> "http%3A%2F%2Fsws.geonames.org%2F226074%2F
>> 
>> <http://localhost:8890/conductor/http%3A%2F%2Fsws.geonames.org%2F226074%2F>" 
>>
>>
>> now to solve this problem temporary, I' using rr:column not
>> template for IRI for this situation, 
>> I'm using IRI function then to convert the
>> "http://sws.geonames.org/226074; text to IRI in filter clause
>> like this 
>> select ?countryName 
>> where 
>> { 
>> GRAPH <http://localhost:8890/emrMaster#> 
>> {
>> 
>> ?patient sio:SIO_000664 ?country.
>> }
>>
>> GRAPH <http://localhost:8890/ontologies/geonames> 
>> {
>>   ?geo gn:name ?countryName.
>>     }
>> 
>> FILTER(IRI(?country) = ?geo) .
>> }
>> GROUP BY ?countryName
>>
>> is it a bug ??? or something wrong ???
>> thanks again
>>
>> On Wed, Dec 30, 2015 at 7:57 PM, Kingsley Idehen
>> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>>
>> On 12/30/15 8:21 AM, Eng.Bassam wrote:
>>> Hi  Kingsely and all members 
>>>
>>> still there is the same problem can't traverse from ontology
>>> to other cause the generated IRI is text not IRI type, next
>>> is the description and sorry to be long  but it's a problem
>>> need to solve ASAP to complete my project
>>> As I have said I have imported SQL DB using custom R2RML:
>>> <#TriplesMapPerson> a rr:TriplesMap; rr:logicalTable [
>>> rr:tableSchema "dataMaster" ; rr:tableOwner "data-ODBC" ;
>>> rr:tableName "Person" ]; 
>>> rr:subjectMap [ rr:termType rr:IRI  ; rr:template
>>> "http://localhost:8890/dataMaster/person/PersonID={ID};;
>>> rr:class sio:SIO_000393; rr:graph
>>> <http://localhost:8890/dataMaster#> ];
>>>
>>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>>> sio:SIO_000664 ] ; rr:objectMap [ rr:column "Country" ]; ] ;
>>>
>>> the column Country contain the IRIs of country geo ontology
>>> i.e as http://sws.geonames.org/226074/, this ontology I have
>>> loaded in my Virtuoso server at 
>>> http://localhost:8890/ontologies/geonames
>>>
>>> this local ontology have rdf resources as :
>>> http://sws.geonames.org/226074/;>
>>> >> rdf:resource="http://sws.geonames.org/226074/about.rdf
>>> <http://sws.geonames.org/2378080/about.rdf>"/>
>>> USA
>>> 
>>>
>>> now my query is :
>>>
>>> PREFIX sio:  <http://semanticscience.org/resource/>
>>> prefix gn: <http://www.geonames.org/ontology#>
>>> select ?country
>>> FROM <http://localhost:8890/dataMaster#>
>>> FROM <http://localhost:8890/ontologies/geonames>
>>> WHERE { ?s a sio:SIO_000393.
>>> ?s sio:SIO_000664 ?country.
>>> }
>>>
>>> the result unfortunately is the IRIs but in quotation as a
>>> text not an IRI type i.e "http://sws.geonames.org/226074/;,
>>> so I can't add to where clause in my query ?country gn:name
>>> ?cname also can't do ?country a gn:Feature
>>>
>>> PREFIX sio:  <http://se

Re: [Virtuoso-users] confusing in rr:joinCondition generated by virtuoso ??

2016-01-04 Thread Kingsley Idehen
On 12/24/15 2:00 PM, Eng.Bassam wrote:
> Kingsley, 
> 1- : the second link need a login, can I get the file without account
> I try login via facebook but it fail.

Changed the content-type to text plain so that redirection no longer
takes you to a service that requires authentication.

> 2- Do you mean there is really a problem in auto generated virtuoso
> r2rml or not  ???

There is a problem with the R2RML being generated. That doesn't
necessarily lead to bad results from the SQL producing the final RDF. It
just means that the aforementioned SQL could have Tables ordered in
suboptimal fashion e.g., scanning children to match parents instead of
scanning parents to match children.

We are going to fix the generated R2RML, but in the meantime to can just
fix this by hand if it adversely affects what you are doing.

Kingsley
>
> thanks
>
> On Thu, Dec 24, 2015 at 8:53 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 12/24/15 1:03 PM, Eng.Bassam wrote:
>> sorry to send again, forget the attachment :D
>>
>> thanks again 
>> waiting a fix a problem 
>> if you want more simple example (dept & emp) it's in attachment
>> file also, as you will see the file has R2RML not same as W3 example
>> at http://www.w3.org/TR/r2rml/
>>
>> if apply the emp & dept example on virtuoso and to get RDF graph,
>> we will see the emp triple has reference to department (it's
>> right) but also the dept has triples for it's emloyees (wrong
>> sure there is no key in DB from Dept to employee)
>>
>> I wish it's clear description and thanks a lot to answer me :)
>
> While we look into this confusing generated syntax matter, here
> are some R2RML docs used in my live RDF Views over ODBC Data
> Source demos [1]:
>
> [1]
> 
> http://kidehen.blogspot.com/2015/07/conceptual-data-virtualization-across.html
> [2]
> 
> http://kingsley.idehen.net/public_home/kidehen/Public/R2RML%20Demos/oracle_hr_rdf_views_r2rml.ttl
> -- Oracle Demo HR .
>
>
> Kingsley
>
>>
>>
>> On Thu, Dec 24, 2015 at 5:36 PM, Kingsley Idehen
>> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>>
>> On 12/23/15 11:49 PM, Eng.Bassam wrote:
>>> Mr. Kingsley
>>> another description about my confusing :) :
>>>
>>> the parent table here in my example is Patient which has ID
>>> primary Key
>>> the child table is the Diagnoses which has foreign key is
>>> Patient ID
>>>
>>> now the R2RML must make a join condition to link child table
>>> (Diagnoses) with it's parent (Patient)
>>> the condition is in sql ( Diagnoses,PatientID = Patient.ID)
>>>
>>> but in generated R2RML by virtuoso is make the child
>>> -->parent and make parent-->child
>>
>> We have a issue that we need fix here as the generated R2RML
>> shouldn't be confusing, which is the case right now.
>>
>> The issue is being looked into.
>>
>> Kingsley
>>>> rr:joinCondition [ r*r:child "ID" ; rr:parent
>>>> "PatientID" *] ; ]; ] 
>>>> i.e I think the generated r2rml must be opposite:
>>>> rr:child "PatientID" --- not ID
>>>> rr:parent "ID"  not PatientID
>>>> because the PatientID is a column in child table(diagnoses)
>>>> and ID is a column in Parent table (Patient).
>>>> right??? 
>>>> this what I have understood
>>>> from http://www.w3.org/TR/r2rml/#example-fk
>>>>
>>>> sorry again about long questions and thanks :)
>>>
>>>
>>>
>>> On Wed, Dec 23, 2015 at 10:33 PM, Kingsley Idehen
>>> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>>>
>>> On 12/23/15 2:59 PM, Eng.Bassam wrote:
>>>> yes Kingsley
>>>> to be my question more clear :)
>>>>
>>>> Patient (ID, name, country) -- ID is PK
>>>> Diagnose (DiagnosesID, DiseaseID, PatientID,)
>>>> DiagnosesID is PK , PatientID is FK to patient table
>>>>
>>>> the r2rml is 
>>>> rr:predicateObjectMap [ rr:pre

Re: [Virtuoso-users] Make my views refer to external ontology?

2016-01-04 Thread Kingsley Idehen
On 12/30/15 8:21 AM, Eng.Bassam wrote:
> Hi  Kingsely and all members 
>
> still there is the same problem can't traverse from ontology to other
> cause the generated IRI is text not IRI type, next is the description
> and sorry to be long  but it's a problem need to solve ASAP to
> complete my project
> As I have said I have imported SQL DB using custom R2RML:
> <#TriplesMapPerson> a rr:TriplesMap; rr:logicalTable [ rr:tableSchema
> "dataMaster" ; rr:tableOwner "data-ODBC" ; rr:tableName "Person" ]; 
> rr:subjectMap [ rr:termType rr:IRI  ; rr:template
> "http://localhost:8890/dataMaster/person/PersonID={ID}
> <http://localhost:8890/dataMaster/person/PersonID=%7BID%7D>"; rr:class
> sio:SIO_000393; rr:graph <http://localhost:8890/dataMaster#> ];
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant sio:SIO_000664 ]
> ; rr:objectMap [ rr:column "Country" ]; ] ;
>
> the column Country contain the IRIs of country geo ontology i.e as
> http://sws.geonames.org/226074/, this ontology I have loaded in my
> Virtuoso server at 
> http://localhost:8890/ontologies/geonames
>
> this local ontology have rdf resources as :
> http://sws.geonames.org/226074/
> <http://sws.geonames.org/2378080/>">
>  rdf:resource="http://sws.geonames.org/226074/about.rdf
> <http://sws.geonames.org/2378080/about.rdf>"/>
> USA
> 
>
> now my query is :
>
> PREFIX sio:  <http://semanticscience.org/resource/>
> prefix gn: <http://www.geonames.org/ontology#>
> select ?country
> FROM <http://localhost:8890/dataMaster#>
> FROM <http://localhost:8890/ontologies/geonames>
> WHERE { ?s a sio:SIO_000393.
> ?s sio:SIO_000664 ?country.
> }
>
> the result unfortunately is the IRIs but in quotation as a text not an
> IRI type i.e "http://sws.geonames.org/226074/;, so I can't add to
> where clause in my query ?country gn:name ?cname also can't do
> ?country a gn:Feature
>
> PREFIX sio:  <http://semanticscience.org/resource/>
> prefix gn: <http://www.geonames.org/ontology#>
> select ?country
> FROM <http://localhost:8890/dataMaster#>
> FROM <http://localhost:8890/ontologies/geonames>
> WHERE { ?s a sio:SIO_000393.
> ?s sio:SIO_000664 ?country.
>?country gn:name ?cname// *this
> triple make a traverse to other local ontology (geonames)*
> }
>
> I think the problem is :
> generated country property is text not IRI type.
> I have try to modify the my R2RML using IRI template as 
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant sio:SIO_000664 ]
> ; rr:objectMap [ rr:termType rr:IRI ; rr:constant gn:Feature;
> rr:template "{Country_geo}" ]; ] ;
>
> but also fail the generated IRI "need an
> encoding"as http%3A%2F%2Fsws.geonames.org%2F226074%2F
> <http://localhost:8890/conductor/http%3A%2F%2Fsws.geonames.org%2F226074%2F>
>
> wish to give me a solution :)
>
> thanks

You don't need an encoded IRI. You need <http://sws.geonames.org/226074/
<http://sws.geonames.org/2378080/>> .


rr:predicateObjectMap [ rr:predicateMap [ rr:constant sio:SIO_000664 ] ;
rr:objectMap [ rr:termType rr:IRI ; rr:constant gn:Feature; rr:template
"{Country_geo}" ]; ]

should be producing <http://sws.geonames.org/226074/
<http://sws.geonames.org/2378080/>>, not
"http://sws.geonames.org/226074/ <http://sws.geonames.org/2378080/>"  .

We'll try to make time to simulate this if my response still doesn't get
you over this problem.

Kingsley
>
>
> On Tue, Dec 29, 2015 at 9:46 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 12/29/15 2:08 PM, Eng.Bassam wrote:
>> thanks
>> I thinks only must write FROM statement to include local
>> ontologies in my sparql or to inform sparql engine where can
>> locate the data, i.e:
>>
>> select ?o ?cname
>> FROM <http://localhost:8890/ontologies/mydata> //my
>> persons data
>> FROM <http://localhost:8890/ontologies/geonames>   // geo country
>> data
>> where {?s SIO:SIO_000664 ?o;
>> ?s a foaf:Person.
>> OPTIONAL { ?o gn:name ?cname. }
>>  }
>> limit 10
>>
>> right?
>
> You can also just do:
>
> select ?o ?cname
> where { GRAPH ?g { ?s SIO:SIO_000664 ?o;
> ?s a foaf:Person.
> OPTIONAL { ?o gn:name ?cname. } }
>  }
> limit 10
>
> Kingsley
>>
>> On Tu

Re: [Virtuoso-users] Find out which SQL query is generated from my SPARQL

2016-01-04 Thread Kingsley Idehen
On 12/17/15 3:50 PM, Efimov, Alexander wrote:
>
> Hi Kingsley,
>
>  
>
> Thanks!
>
> I’m trying this approach but it’s not working for me somehow.
>
> I have reloaded r2rml script using Conductor UI to
> http://localhost:8890/r2rml#
>

Okay, and that should be your virtual graph.
>
> I have also checked «Create RDB2RDF Triggers» and «Enable Data Syncs
> with Physical Quad Store» options.
>

Okay, but there's no harm in running it manually using the command
presented in my reply. Basically, verify that you have virtual triples
via: sparql select count (*) from <{virtual-named-graph-iri}> and then
attempt to sync to the physical named graph, and after the sync execute:
sparql select count (*) from <{physical-named-graph-iri}> .
>
> It has executed with no errors, but when I’m trying to query
>  I get nothing.
>

So its possible that script execution didn't work.

> I also don’t see this Physical graph in the list of Graphs in Conductor.
>
> However if I try querying remote graph, I get the query running
> forever (actually it’s the problem I started with).
>
>  
>
> Should I wait until Virtuoso finishes sync to Physical Quad Store?
>

Yes, if its in progress.

> Is there a way to keep track of the current progress?
>

The DB file will grow, so: ls -lt virtuoso.db, is the ultimate indicator.

> Is there a way to trigger sync to start right away?
>

Well not via r2rml, but if you manually generated RDF Views from the
r2rml you end up with a script that automates this.

> Sorry, a lot of questions.
>

BTW -- how many records are there in each of the source tables? How many
triples did you have in the virtual graph?

Kingsley
>
> Thanks for all your help in this.
>
>  
>
> Best regards,
>
> Alexander Efimov.
>
>  
>
> *From:*Kingsley Idehen [mailto:kide...@openlinksw.com]
> *Sent:* Wednesday, December 16, 2015 3:51 PM
> *To:* virtuoso-users@lists.sourceforge.net
> *Subject:* Re: [Virtuoso-users] Find out which SQL query is generated
> from my SPARQL
>
>  
>
> On 12/16/15 4:33 AM, Efimov, Alexander wrote:
>
> Hi Kingsley,
>
>  
>
> Do you mean that if I modify the query in a following way it
> should work without any problem?
>
>  
>
> PREFIX:  sq:<http://our_schema> <http://our_schema>
>
>  
>
> SELECT *
>
> FROM  <http://this_is_the_graph_name >
>
> WHERE
>
> {
>
> ?customer sq:hasOrder ?order .
>
> ?order sq:hasGoods ?goods .
>
> ?goods sq:Name ?goodsName . FILTER (?goodsName in (‘Name1’,
> ‘Name2’)) .
>
> ?goods sq:hasSubCategory ?subCategory . #note that subcategory
> is IRI
>
> ?subCategory sq:hasParentCategory ?category #note that
> category is IRI
>
> };
>
>
> It will work better (fewer costly joins re. instanceOf handling). 
> Ultimately, for massive amounts of data, you really want to implement
> the virtual->physical sync option. Then you have the ability to
> explore data with more flexibility (different rdf views for different
> purposes) and scalability (instanceOf relations, inference and
> reasoning etc..).
>
> Kingsley
>
> Thank you.
>
> Best regards,
>
> Alexander Efimov.
>
>  
>
> *From:*Kingsley Idehen [mailto:kide...@openlinksw.com]
> *Sent:* Monday, December 14, 2015 11:49 PM
> *To:* virtuoso-users@lists.sourceforge.net
> <mailto:virtuoso-users@lists.sourceforge.net>
> *Subject:* Re: [Virtuoso-users] Find out which SQL query is
> generated from my SPARQL
>
>  
>
> On 12/14/15 11:34 AM, Efimov, Alexander wrote:
>
> Hi Kingsley,
>
>  
>
> The idea is that our concept model I map to with R2RML is not
> the same as source tables.
>
> So just  using output from Generate RDF Views would not work.
>
> I write custom R2RML code which maps from flat DB model to
> graph concept model
>
>  
>
> For example:
>
>  
>
> Let it be the following tables:
>
>  
>
> 1.   Goods
>
> a.   ID Integer
>
> b.  Name String
>
> c.   Category String
>
> d.  SubCategory String
>
>  
>
> 2.   Customer
>
> a.   ID Integer
>
> b.  Name String
>
>  
>
> 3.   Order
>
> a.   ID Integer
>
> b.  Goods ID Integer
>
> c.   Customer ID Integer
>
>  
>
>   

Re: [Virtuoso-users] Make my views refer to external ontology?

2016-01-04 Thread Kingsley Idehen
On 1/4/16 4:52 AM, Eng.Bassam wrote:
> Hi
> I have tried this solution many times but unfortunately it's fail 
> the generated IRI by virtuoso as
> "http%3A%2F%2Fsws.geonames.org%2F226074%2F
> <http://localhost:8890/conductor/http%3A%2F%2Fsws.geonames.org%2F226074%2F>" 
>
>
> now to solve this problem temporary, I' using rr:column not template
> for IRI for this situation, 
> I'm using IRI function then to convert the
> "http://sws.geonames.org/226074; text to IRI in filter clause
> like this 
> select ?countryName 
> where 
> { 
> GRAPH <http://localhost:8890/emrMaster#> 
> {
> 
> ?patient sio:SIO_000664 ?country.
> }
>
> GRAPH <http://localhost:8890/ontologies/geonames> 
> {
>   ?geo gn:name ?countryName.
> }
> 
> FILTER(IRI(?country) = ?geo) .
> }
> GROUP BY ?countryName
>
> is it a bug ??? or something wrong ???
> thanks again
>
> On Wed, Dec 30, 2015 at 7:57 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 12/30/15 8:21 AM, Eng.Bassam wrote:
>> Hi  Kingsely and all members 
>>
>> still there is the same problem can't traverse from ontology to
>> other cause the generated IRI is text not IRI type, next is the
>> description and sorry to be long  but it's a problem need to
>> solve ASAP to complete my project
>> As I have said I have imported SQL DB using custom R2RML:
>> <#TriplesMapPerson> a rr:TriplesMap; rr:logicalTable [
>> rr:tableSchema "dataMaster" ; rr:tableOwner "data-ODBC" ;
>> rr:tableName "Person" ]; 
>> rr:subjectMap [ rr:termType rr:IRI  ; rr:template
>> "http://localhost:8890/dataMaster/person/PersonID={ID};; rr:class
>> sio:SIO_000393; rr:graph <http://localhost:8890/dataMaster#> ];
>>
>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>> sio:SIO_000664 ] ; rr:objectMap [ rr:column "Country" ]; ] ;
>>
>> the column Country contain the IRIs of country geo ontology i.e
>> as http://sws.geonames.org/226074/, this ontology I have loaded
>> in my Virtuoso server at 
>> http://localhost:8890/ontologies/geonames
>>
>> this local ontology have rdf resources as :
>> http://sws.geonames.org/226074/;>
>> > rdf:resource="http://sws.geonames.org/226074/about.rdf
>> <http://sws.geonames.org/2378080/about.rdf>"/>
>> USA
>> 
>>
>> now my query is :
>>
>> PREFIX sio:  <http://semanticscience.org/resource/>
>> prefix gn: <http://www.geonames.org/ontology#>
>> select ?country
>> FROM <http://localhost:8890/dataMaster#>
>> FROM <http://localhost:8890/ontologies/geonames>
>> WHERE { ?s a sio:SIO_000393.
>> ?s sio:SIO_000664 ?country.
>> }
>>
>> the result unfortunately is the IRIs but in quotation as a text
>> not an IRI type i.e "http://sws.geonames.org/226074/;, so I can't
>> add to where clause in my query ?country gn:name ?cname also
>> can't do ?country a gn:Feature
>>
>> PREFIX sio:  <http://semanticscience.org/resource/>
>> prefix gn: <http://www.geonames.org/ontology#>
>> select ?country
>> FROM <http://localhost:8890/dataMaster#>
>> FROM <http://localhost:8890/ontologies/geonames>
>> WHERE { ?s a sio:SIO_000393.
>> ?s sio:SIO_000664 ?country.
>>?country gn:name ?cname//
>> *this triple make a traverse to other local ontology (geonames)*
>> }
>>
>> I think the problem is :
>> generated country property is text not IRI type.
>> I have try to modify the my R2RML using IRI template as 
>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>> sio:SIO_000664 ] ; rr:objectMap [ rr:termType rr:IRI ;
>> rr:constant gn:Feature; rr:template "{Country_geo}" ]; ] ;
>>
>> but also fail the generated IRI "need an
>> encoding"as http%3A%2F%2Fsws.geonames.org%2F226074%2F
>> 
>> <http://localhost:8890/conductor/http%3A%2F%2Fsws.geonames.org%2F226074%2F>
>>
>> wish to give me a solution :)
>>
>> thanks
>

This looks like a bug in the generator. It should be producing an IRI .

-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this

--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Make my views refer to external ontology?

2015-12-29 Thread Kingsley Idehen
On 12/29/15 12:46 PM, Eng.Bassam wrote:
> suppose the geoname resource is:
> http://sws.geonames.org/2378080/;>
>  rdf:resource="http://sws.geonames.org/2378080/about.rdf"/>
> Mauritania
> 
>
> I want to get name of country_geo
> select ?o ?cname
> where {?s SIO:SIO_000664 ?o;
> ?s a foaf:Person.
>  ?o gn:name ?cname }
> limit 10
>
> how I can traverse to geonames ontology to get a name property ???

That has nothing to do with R2RML. That's all about de-referencing data
from geonames "on the fly" as part of query processing -- if you don't
have this data loaded locally. If loaded locally, then query above will
return the correct solution for ?cname.

To be extra safe (i.e. query for a solution that includes relations that
have empty gname objects) try:

select ?o ?cname
where {?s SIO:SIO_000664 ?o;
?s a foaf:Person.
OPTIONAL { ?o gn:name ?cname. }
}
limit 10

Kingsley
>
>
> On Tue, Dec 29, 2015 at 6:36 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 12/29/15 8:31 AM, Eng.Bassam wrote:
>> Hello 
>> I have a person pesron table with columns (id, name ,
>> country_geo), person table type in R2RML is foaf:person, I have
>> also loaded geonames onology in my virtuoso server at link
>> http://localhost:8890/ontologies/geonames
>>
>> now for the country_geo column the r2rml is :
>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>> SIO:SIO_000664 ] ; rr:objectMap [ rr:column "Country_geo" ]; ] ;
>>
>> the value of country_geo is IRI e.g
>> "http://sws.geonames.org/2378080/; described in my loaded
>> ontology geonames.
>> now how can I make the generated country_geo property in person
>> refer to my loaded ontology geonames, what should I write in
>> r2rml ???
>> my objective is making sparql queries on the generated views
>> (persons) and traverse to geonames for more info about countries.
>>
>> wish it's clear question :)
>> thanks
>>
>> -- 
>> ---
>> > Eng.Bassam Najeeb.
>> >Software Engineer.
>
> Okay, so have you generated you views and hit a problem? You are
> already mapping Geoname IRIs to country_geo, so your end product
> would be instances of a class that have IRI property values from
> the geonames ontology. Net effect, from your SPARQL DESCRIBE,
> SELECT, or CONSTRUCTs on the foaf:Person instances you will be
> able to follow-your-nose through SIO:SIO_000664 property values.
>
> select ?o
> where {?s SIO:SIO_000664 ?o;
> ?s a foaf:Person. }
> limit 10
>
>
> Kingsley
>>
>>
>>
>> 
>> ------
>>
>>
>> ___
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> <mailto:Virtuoso-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
> -- 
> Regards,
>
> Kingsley Idehen 
> Founder & CEO 
> OpenLink Software 
> Company Web: http://www.openlinksw.com
> Personal Weblog 1: http://kidehen.blogspot.com
> Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
> <http://www.openlinksw.com/blog/%7Ekidehen>
> Twitter Profile: https://twitter.com/kidehen
> Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
> LinkedIn Profile: http://www.linkedin.com/in/kidehen
> Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this
>
>
> 
> --
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> <mailto:Virtuoso-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
>
>
> -- 
> ---
> > Eng.Bassam Najeeb.
> >Software Engineer.
>
>
>
> --
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.source

Re: [Virtuoso-users] Make my views refer to external ontology?

2015-12-29 Thread Kingsley Idehen
On 12/29/15 8:31 AM, Eng.Bassam wrote:
> Hello 
> I have a person pesron table with columns (id, name , country_geo),
> person table type in R2RML is foaf:person, I have also loaded geonames
> onology in my virtuoso server at link
> http://localhost:8890/ontologies/geonames
>
> now for the country_geo column the r2rml is :
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant SIO:SIO_000664 ]
> ; rr:objectMap [ rr:column "Country_geo" ]; ] ;
>
> the value of country_geo is IRI e.g "http://sws.geonames.org/2378080/;
> described in my loaded ontology geonames.
> now how can I make the generated country_geo property in person refer
> to my loaded ontology geonames, what should I write in r2rml ???
> my objective is making sparql queries on the generated views (persons)
> and traverse to geonames for more info about countries.
>
> wish it's clear question :)
> thanks
>
> -- 
> ---
> > Eng.Bassam Najeeb.
> >Software Engineer.

Okay, so have you generated you views and hit a problem? You are already
mapping Geoname IRIs to country_geo, so your end product would be
instances of a class that have IRI property values from the geonames
ontology. Net effect, from your SPARQL DESCRIBE, SELECT, or CONSTRUCTs
on the foaf:Person instances you will be able to follow-your-nose
through SIO:SIO_000664 property values.

select ?o
where {?s SIO:SIO_000664 ?o;
?s a foaf:Person. }
limit 10


Kingsley
>
>
>
> --
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Make my views refer to external ontology?

2015-12-29 Thread Kingsley Idehen
On 12/29/15 2:08 PM, Eng.Bassam wrote:
> thanks
> I thinks only must write FROM statement to include local ontologies in
> my sparql or to inform sparql engine where can locate the data, i.e:
>
> select ?o ?cname
> FROM <http://localhost:8890/ontologies/mydata> //my persons data
> FROM <http://localhost:8890/ontologies/geonames>   // geo country data
> where {?s SIO:SIO_000664 ?o;
> ?s a foaf:Person.
> OPTIONAL { ?o gn:name ?cname. }
>  }
> limit 10
>
> right?

You can also just do:

select ?o ?cname
where { GRAPH ?g { ?s SIO:SIO_000664 ?o;
?s a foaf:Person.
OPTIONAL { ?o gn:name ?cname. } }
 }
limit 10

Kingsley
>
> On Tue, Dec 29, 2015 at 9:02 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 12/29/15 12:46 PM, Eng.Bassam wrote:
>> suppose the geoname resource is:
>> http://sws.geonames.org/2378080/;>
>> > rdf:resource="http://sws.geonames.org/2378080/about.rdf"/>
>> Mauritania
>> 
>>
>> I want to get name of country_geo
>> select ?o ?cname
>> where {?s SIO:SIO_000664 ?o;
>> ?s a foaf:Person.
>>  ?o gn:name ?cname }
>> limit 10
>>
>> how I can traverse to geonames ontology to get a name property ???
>
> That has nothing to do with R2RML. That's all about de-referencing
> data from geonames "on the fly" as part of query processing -- if
> you don't have this data loaded locally. If loaded locally, then
> query above will return the correct solution for ?cname.
>
> To be extra safe (i.e. query for a solution that includes
> relations that have empty gname objects) try:
>
> select ?o ?cname
>     where {?s SIO:SIO_000664 ?o;
> ?s a foaf:Person.
> OPTIONAL { ?o gn:name ?cname. }
> }
> limit 10
>
> Kingsley
>>
>>
>> On Tue, Dec 29, 2015 at 6:36 PM, Kingsley Idehen
>> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>>
>> On 12/29/15 8:31 AM, Eng.Bassam wrote:
>>> Hello 
>>> I have a person pesron table with columns (id, name ,
>>> country_geo), person table type in R2RML is foaf:person, I
>>> have also loaded geonames onology in my virtuoso server at
>>> link http://localhost:8890/ontologies/geonames
>>>
>>> now for the country_geo column the r2rml is :
>>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>>> SIO:SIO_000664 ] ; rr:objectMap [ rr:column "Country_geo" ]; ] ;
>>>
>>> the value of country_geo is IRI e.g
>>> "http://sws.geonames.org/2378080/; described in my loaded
>>> ontology geonames.
>>> now how can I make the generated country_geo property in
>>> person refer to my loaded ontology geonames, what should I
>>> write in r2rml ???
>>> my objective is making sparql queries on the generated views
>>> (persons) and traverse to geonames for more info about
>>> countries.
>>>
>>> wish it's clear question :)
>>> thanks
>>>
>>> -- 
>>> ---
>>> > Eng.Bassam Najeeb.
>>> >Software Engineer.
>>
>> Okay, so have you generated you views and hit a problem? You
>> are already mapping Geoname IRIs to country_geo, so your end
>> product would be instances of a class that have IRI property
>> values from the geonames ontology. Net effect, from your
>> SPARQL DESCRIBE, SELECT, or CONSTRUCTs on the foaf:Person
>> instances you will be able to follow-your-nose through
>> SIO:SIO_000664 property values.
>>
>> select ?o
>> where {?s SIO:SIO_000664 ?o;
>> ?s a foaf:Person. }
>> limit 10
>>
>>
>> Kingsley
>>>
>>>
>>>
>>> 
>>> --
>>>
>>>
>>> ___
>>> Virtuoso-users mailing list
>>> Virtuoso-users@lists.sourceforge.net
>>> <mailto:Virtuos

Re: [Virtuoso-users] Timeout problem

2015-12-28 Thread Kingsley Idehen
On 12/28/15 7:13 AM, Pantelis Natsiavas wrote:
> Hi everybody.
>
> I use a Virtuoso instance installed on ubuntu (Virtuoso version:
> 07.20.3214, Build: Oct 14 2015), in order to execute sparql queries.
> My queries are quite complex and make heavy use of the "OPTIONAL"
> pattern. While I have used the same queries on another virtuoso
> endpoint (not controlled by me) I cannot seem to use them on mine. I
> keep getting the message
>
> "Virtuoso 42000 Error The estimated execution time 0 (sec) exceeds the
> limit of 18000 (sec)."
>
> As you see, I have changed the timeout parameters in the virtuoso.ini
> file and put an irrational value (18000 seconds!!!). Still, it seems
> that the engine would refuse to execute my query.
>
> My questions are:
> 1. Is the value "0" mentioned as execution time a special value or is
> it just a bug? Is it logical to assume that the virtuoso estimates
> that the query would require infinite time to execute?
> 2. Are there any other configurations that I could do in order to
> improve situation?
> 3. Is there anything that I should keep in mind when I use the
> "OPTIONAL" sparql query pattern? I mean, is there a documented (even
> informally) way of improving the performance of queries using OPTIONAL
> clauses?
>
> Kind regards,
> Pantelis Natsiavas 

I suggest you share your [SPARQL] section settings from your Virtuoso INI.

[1]
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtEC2AMIDBpediaInstall
-- this doc has a section on settings for DBpedia.


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] confusing in rr:joinCondition generated by virtuoso ??

2015-12-24 Thread Kingsley Idehen
On 12/23/15 11:49 PM, Eng.Bassam wrote:
> Mr. Kingsley
> another description about my confusing :) :
>
> the parent table here in my example is Patient which has ID primary Key
> the child table is the Diagnoses which has foreign key is Patient ID
>
> now the R2RML must make a join condition to link child table
> (Diagnoses) with it's parent (Patient)
> the condition is in sql ( Diagnoses,PatientID = Patient.ID)
>
> but in generated R2RML by virtuoso is make the child -->parent and
> make parent-->child

We have a issue that we need fix here as the generated R2RML shouldn't
be confusing, which is the case right now.

The issue is being looked into.

Kingsley
>> rr:joinCondition [ r*r:child "ID" ; rr:parent "PatientID" *] ; ]; ] 
>> i.e I think the generated r2rml must be opposite:
>> rr:child "PatientID" --- not ID
>> rr:parent "ID"  not PatientID
>> because the PatientID is a column in child table(diagnoses) and ID is
>> a column in Parent table (Patient).
>> right??? 
>> this what I have understood from http://www.w3.org/TR/r2rml/#example-fk
>>
>> sorry again about long questions and thanks :)
>
>
>
> On Wed, Dec 23, 2015 at 10:33 PM, Kingsley Idehen
> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>
> On 12/23/15 2:59 PM, Eng.Bassam wrote:
>> yes Kingsley
>> to be my question more clear :)
>>
>> Patient (ID, name, country) -- ID is PK
>> Diagnose (DiagnosesID, DiseaseID, PatientID,) DiagnosesID is
>> PK , PatientID is FK to patient table
>>
>> the r2rml is 
>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>> DB:patient_of_diagnoses ] ; rr:objectMap [ rr:parentTriplesMap
>> <#TriplesMapDiagnoses>;  rr:joinCondition [ r*r:child "ID" ;
>> rr:parent "PatientID" *] ; ]; ] 
>>
>> I understand the patient is parent and the diagnose is child 
>> but In r2rml I have noted the opposite make ID column in patient
>> table is child (r*r:child "ID"*) and make the PatientID Fk in
>> diagnose is parent (*rr:parent "PatientID"*)
>> I don't know if I have misunderstood of this syntax
>> wish it's clear and thanks again :)
> The product of Patient..ID and Diagnose..ParentID will produce a
> projection of the records that constitute the parent/child
> relation. That's what's important i.e., rr:child "ID" and
> rr:parent "PatientID" clearly identified for use in SQL join.
>
> If the projection from the query join is incorrect, then we have a
> problem.
>
> Kingsley
>>
>> On Wed, Dec 23, 2015 at 9:49 PM, Kingsley Idehen
>> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote:
>>
>> On 12/23/15 9:51 AM, Eng.Bassam wrote:
>>> Hi
>>> I'm wonder about child parent in rr:joinCondition in R2RML
>>> generated by virtuoso, suppose I have tow tables patient and
>>> Diagnose
>>>
>>> Patient (ID, name, country) -- ID is PK
>>> Diagnose (DiagnosesID, DiseaseID, PatientID,)
>>> DiagnosesID is PK , PatientID is FK to patient table
>>>
>>> I have imported the tow tables by virtuoso wizard and it
>>> generate to me R2RML
>>>
>>> <#TriplesMapDiagnoses> a rr:TriplesMap; rr:logicalTable [
>>> rr:tableSchema "emr" ; rr:tableOwner "emr-ODBC" ;
>>> rr:tableName "Diagnoses" ]; 
>>> rr:subjectMap [ rr:termType rr:IRI  ; rr:template
>>> "http://localhost:8890/emr/diagnoses/DiagnosesID={DiagnosesID};;
>>> rr:class DB:Diagnoses; rr:graph <http://localhost:8890/DB#> ];
>>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>>> DB:diagnosesid ] ; rr:objectMap [ rr:column "DiagnosesID" ]; ] ;
>>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>>> DB:diagnoses_has_disease ] ; rr:objectMap [ rr:termType
>>> rr:IRI ; rr:template
>>> "http://localhost:8890/emr/disease/DiseaseID={DiseaseID}; ]; ] ;
>>> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
>>> DB:diagnoses_has_patient ] ; rr:objectMap [ rr:termType
>>> rr:IRI ; rr:template
>>> "http://localhost:8890/emr/patient/PatientID={PatientID}; ]; ] .
>>>
>>>   

Re: [Virtuoso-users] confusing in rr:joinCondition generated by virtuoso ??

2015-12-23 Thread Kingsley Idehen
On 12/23/15 9:51 AM, Eng.Bassam wrote:
> Hi
> I'm wonder about child parent in rr:joinCondition in R2RML generated
> by virtuoso, suppose I have tow tables patient and Diagnose
>
> Patient (ID, name, country) -- ID is PK
> Diagnose (DiagnosesID, DiseaseID, PatientID,) DiagnosesID is PK ,
> PatientID is FK to patient table
>
> I have imported the tow tables by virtuoso wizard and it generate to
> me R2RML
>
> <#TriplesMapDiagnoses> a rr:TriplesMap; rr:logicalTable [
> rr:tableSchema "emr" ; rr:tableOwner "emr-ODBC" ; rr:tableName
> "Diagnoses" ]; 
> rr:subjectMap [ rr:termType rr:IRI  ; rr:template
> "http://localhost:8890/emr/diagnoses/DiagnosesID={DiagnosesID}
> <http://localhost:8890/emr/diagnoses/DiagnosesID=%7BDiagnosesID%7D>";
> rr:class DB:Diagnoses; rr:graph <http://localhost:8890/DB#> ];
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant DB:diagnosesid ]
> ; rr:objectMap [ rr:column "DiagnosesID" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> DB:diagnoses_has_disease ] ; rr:objectMap [ rr:termType rr:IRI ;
> rr:template "http://localhost:8890/emr/disease/DiseaseID={DiseaseID}
> <http://localhost:8890/emr/disease/DiseaseID=%7BDiseaseID%7D>" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> DB:diagnoses_has_patient ] ; rr:objectMap [ rr:termType rr:IRI ;
> rr:template "http://localhost:8890/emr/patient/PatientID={PatientID}
> <http://localhost:8890/emr/patient/PatientID=%7BPatientID%7D>" ]; ] .
>
> --patient
> <#TriplesMapPatient> a rr:TriplesMap; rr:logicalTable [ rr:tableSchema
> "emr" ; rr:tableOwner "emr-ODBC" ; rr:tableName "Patient" ]; 
> rr:subjectMap [ rr:termType rr:IRI  ; rr:template
> "http://localhost:8890/emr/patient/ID={ID}
> <http://localhost:8890/emr/patient/ID=%7BID%7D>"; rr:class DB:Patient;
> rr:graph <http://localhost:8890/DB#> ];
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant DB:id ] ;
> rr:objectMap [ rr:column "ID" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant DB:firstname ] ;
> rr:objectMap [ rr:column "FirstName" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant DB:dead ] ;
> rr:objectMap [ rr:column "Dead" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant DB:dead_date ] ;
> rr:objectMap [ rr:column "Dead_Date" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> DB:patient_has_disease ] ; rr:objectMap [ rr:termType rr:IRI ;
> rr:template "http://localhost:8890/emr/disease/Cause_Dead={Cause_Dead}
> <http://localhost:8890/emr/disease/Cause_Dead=%7BCause_Dead%7D>" ]; ] ;
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> DB:patient_of_diagnoses ] ; rr:objectMap [ rr:parentTriplesMap
> <#TriplesMapDiagnoses>;  rr:joinCondition [ r*r:child "ID" ; rr:parent
> "PatientID" *] ; ]; ] .
>
> the file R2RML attached also by this mail


Given:

Patient (ID, name, country) -- ID is PK
Diagnose (DiagnosesID, DiseaseID, PatientID,) DiagnosesID is PK ,
PatientID is FK to patient table

Diagnose is the child while Patient is the parent i.e., one Patient
Table Record uniquely identified by ID (the PK) is associated with many
records in Diagnose Table with PatientID as FK.

Hence:

rr:predicateObjectMap [ rr:predicateMap [ rr:constant
DB:patient_of_diagnoses ] ; rr:objectMap [ rr:parentTriplesMap
<#TriplesMapDiagnoses>;  rr:joinCondition [ r*r:child "ID" ; rr:parent
"PatientID" *] ; ]; ]


Kingsley
>
>
> I want understand why the output R2RML in patient make the child is
> patient and parent is dianoses.?
> diagnoses table it is has FK so I thinks it is a child and Patient it
> 's a parent, opposite to output !!!
> ---
> > Eng.Bassam Najeeb.
> >Software Engineer.
>
>
>
> --
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] Find out which SQL query is generated from my SPARQL

2015-12-16 Thread Kingsley Idehen
On 12/16/15 4:33 AM, Efimov, Alexander wrote:
>
> Hi Kingsley,
>
>  
>
> Do you mean that if I modify the query in a following way it should
> work without any problem?
>
>  
>
> PREFIX:  sq:<http://our_schema> <http://our_schema>
>
>  
>
> SELECT *
>
> FROM  <http://this_is_the_graph_name >
>
> WHERE
>
> {
>
> ?customer sq:hasOrder ?order .
>
> ?order sq:hasGoods ?goods .
>
> ?goods sq:Name ?goodsName . FILTER (?goodsName in (‘Name1’,
> ‘Name2’)) .
>
> ?goods sq:hasSubCategory ?subCategory . #note that subcategory is IRI
>
> ?subCategory sq:hasParentCategory ?category #note that category is IRI
>
> };
>

It will work better (fewer costly joins re. instanceOf handling). 
Ultimately, for massive amounts of data, you really want to implement
the virtual->physical sync option. Then you have the ability to explore
data with more flexibility (different rdf views for different purposes)
and scalability (instanceOf relations, inference and reasoning etc..).

Kingsley
>
> Thank you.
>
> Best regards,
>
> Alexander Efimov.
>
>  
>
> *From:*Kingsley Idehen [mailto:kide...@openlinksw.com]
> *Sent:* Monday, December 14, 2015 11:49 PM
> *To:* virtuoso-users@lists.sourceforge.net
> *Subject:* Re: [Virtuoso-users] Find out which SQL query is generated
> from my SPARQL
>
>  
>
> On 12/14/15 11:34 AM, Efimov, Alexander wrote:
>
> Hi Kingsley,
>
>  
>
> The idea is that our concept model I map to with R2RML is not the
> same as source tables.
>
> So just  using output from Generate RDF Views would not work.
>
> I write custom R2RML code which maps from flat DB model to graph
> concept model
>
>  
>
> For example:
>
>  
>
> Let it be the following tables:
>
>  
>
> 1.   Goods
>
> a.   ID Integer
>
> b.  Name String
>
> c.   Category String
>
> d.  SubCategory String
>
>  
>
> 2.   Customer
>
> a.   ID Integer
>
> b.  Name String
>
>  
>
> 3.   Order
>
> a.   ID Integer
>
> b.  Goods ID Integer
>
> c.   Customer ID Integer
>
>  
>
> These three tables map to our Concept model which is a bit
> different from table structure and I’m executing SPARQL Query like
> this:
>
>  
>
> PREFIX:  sq:<http://our_schema> <http://our_schema>
>
>  
>
> SELECT *
>
> FROM  <http://this_is_the_graph_name >
>
> WHERE
>
> {
>
> ?customer sq:hasOrder ?order .
>
> ?order sq:hasGoods ?goods .
>
> ?goods sq:Name ?goodsName . FILTER (?goodsName in (‘Name1’,
> ‘Name2’)) .
>
> ?goods sq:hasSubCategory ?subCategory . #note that subcategory
> is IRI
>
> ?subCategory a sq:SubCategory .
>
> ?subCategory sq:hasParentCategory ?category #note that
> category is IRI
>
> ?subCategory a sq:Category .
>
> };
>
>  
>
> In my particular case I map data from ~10 views to ~13 classes in
> our concept model and WHERE statement is a bit longer.
>
>  
>
>
>
> You have a number of rdf:type relations in your query which pose
> problems unless you leverage the use of physical triples sync'd with
> transient triples (the product of loading your r2rml mappings).
>
> Command:
>
> RDF_VIEW_SYNC_TO_PHYSICAL ('{virtual-triples-named-graph-iri}', 1,
> '{physical-triples-named-graph-iri}');
>
> Example:
>
> Given a named-graph containing virtual triples (result of loading your
> r2rml declarations) identified by the IRI
> <http://demo.openlinksw.com/SQLServer#>
> <http://demo.openlinksw.com/SQLServer>, you could make the physical
> sync replica using a named-graph that holds physical triples
> identified by the IRI:  using the
> command:
>
> RDF_VIEW_SYNC_TO_PHYSICAL ('http://demo.openlinksw.com/SQLServer#
> <http://demo.openlinksw.com/SQLServer>', 1,
> 'urn:demo.openlinksw.com:SQLServer');
>
> Virtuoso will keep  in sync with
> <http://demo.openlinksw.com/SQLServer#>
> <http://demo.openlinksw.com/SQLServer> and that named graph should be
> the target of queries that are scoped to rdf:type relations.
>
> Links:
>
> [1]
> http://kidehen.blogspot.com/2015/07/conceptual-data-virtualization-across.html
>
> [2]
> http://docs.openlinksw.com/virtuoso/fn_rdf_view_sync_to_physical.html  .
>
>
>
> -- 
> Regards,
>  
> Kingsley Idehen   
> Foun

Re: [Virtuoso-users] Find out which SQL query is generated from my SPARQL

2015-12-14 Thread Kingsley Idehen
On 12/14/15 9:21 AM, Efimov, Alexander wrote:
>
> Hi,
>
>  
>
> I’ve built R2RML mappings, but my SPARQL Query (I expect that to be
> joining across about 10 views in DB) runs for hours.
>
> Is there a way to get a SQL query which Virtuoso generates and runs
> over the database views?
>
> I have tried to use trace_on(); command but have nothing human
> readable in terms of SQL queries executed.
>
>  
>
> Thanks.
>

Efimov,

I don't quite understand what you are doing, but I would suggest you
tried the following:

1) Make a SQL view from you 10 table query -- have a sense of the
performance of this view
2) Use the Virtuoso RDF Views Wizard to generate RDF Views script (this
includes R2RML generation)
3) Choose the option to make materialized RDF Views (i.e., to actually
generate physical rather than virtual triples in the quad store that are
syn'cd with source)
4) Re-test outcome and provide feedback about performance .


Kingsley


>
>
> --
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


-- 
Regards,

Kingsley Idehen   
Founder & CEO 
OpenLink Software 
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


  1   2   3   4   5   6   >