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:  .  <> 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>  <%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>  <%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 Mark Wilkinson UPM

Hi Kingsley,

Yes, as I indicated in my initial message, I started-out using just the 
Conductor/Content-Management route.  I activated the "enable LDP" 
button, and was pleased that I was able to do almost every LDP 
operation... *EXCEPT* to create an RDF resource (failed parse of turtle)


All other LDP functionality was working exactly as I expected, simply by 
activating the "enable LDP" checkbox.  Only the creation of RDF 
Resources fails.


Mark



On 09/20/2018 02:07 PM, Kingsley Idehen wrote:

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






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


--
Dr. Mark D. Wilkinson
BBVA-UPM Industry Chair on Biotechnology
Isaac Peral Distinguished Researcher
Centro de Biotecnología y Genómica de Plantas UPM-INIA (CBGP)
Campus Montegancedo,
Autopista M-40 (Km 38)
28223-Pozuelo de Alarcón (Madrid)


"The urge to save humanity is almost always a false front
for the urge to rule it"

   -- H. L. Mencken



___
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-20 Thread Mark Wilkinson UPM
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




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



--
Dr. Mark D. Wilkinson
BBVA-UPM Industry Chair on Biotechnology
Isaac Peral Distinguished Researcher
Centro de Biotecnología y Genómica de Plantas UPM-INIA (CBGP)
Campus Montegancedo,
Autopista M-40 (Km 38)
28223-Pozuelo de Alarcón (Madrid)


"The urge to save humanity is almost always a false front
for the urge to rule it"

   -- H. L. Mencken



___
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 Mark Wilkinson UPM

Thanks, I'll try that later today.

MIght be worthwhile adding these instructions to the manual page 
describing LDP, as neither the requirement for ODS, nor the different 
packages for OS vs Enterprise are described there.


Cheers!

Mark



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



--
Dr. Mark D. Wilkinson
BBVA-UPM Industry Chair on Biotechnology
Isaac Peral Distinguished Researcher
Centro de Biotecnología y Genómica de Plantas UPM-INIA (CBGP)
Campus Montegancedo,
Autopista M-40 (Km 38)
28223-Pozuelo de Alarcón (Madrid)


"The urge to save humanity is almost always a false front
for the urge to rule it"

   -- H. L. Mencken



___
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 Patrick van Kleef
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


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