[Virtuoso-users] PATCH metadata of a LDP Container

2018-10-03 Thread Mark Wilkinson UPM

Hi all!


Attempting to follow the patterns on: 
https://medium.com/virtuoso-blog/http-read-write-operations-using-ldp-protocols-virtuoso-http-s-server-bdaa2736169f


I have an LDP Container http://my.server/LDP/Container1

in the SPARQL endpoint, the URI of the container is the named graph, 
typed as ldp:Container


I want to add metadata to that container.  I am guessing that I need to 
use PATCH and the sparql INSERT query, but I am constantly getting 409 
errors (HTTP/1.1 409 Conflict: can not create resource if a collection 
with same name exists)



This is (excluding username/password) what my PATCH request looks like:

curl -v -g -X PATCH -ik -H "Content-Type: 
application/sparql-update:utf-8" -u user:pass --data-binary 'INSERT  
{GRAPH  
{ dc:creator 
"Marky" .}}' "http://evaluations.fairdata.solutions/DAV/home/LDP/evals/;



Hopefully the command makes it clear what I am trying to do. Clearly I 
am misunderstanding the problem :-)


Advice appreciated!


Mark



--
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

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 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


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

2018-09-19 Thread Mark Wilkinson UPM

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




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