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


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to