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 [email protected] https://lists.sourceforge.net/lists/listinfo/virtuoso-users
