Hello Erich,

Sorry I did not notice your last mails at time.
The last builds work fine for me and the code for this specific case is
stable for almost two years (so Oct 26 2012 build should work as well).
So maybe update is the simplest solution and I will check one more time
what was wrong as late as half year ago.

iv@octo:~/wb$ curl -v -T 1.ttl -H Content-type:text/turtle
http://localhost:8550/sparql-graph-crud?graph-uri=http://www.ebremer.com/log -X 
PUT
* About to connect() to localhost port 8550 (#0)
*   Trying 127.0.0.1... connected
> PUT /sparql-graph-crud?graph-uri=http://www.ebremer.com/log HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:8550
> Accept: */*
> Content-type:text/turtle
> Content-Length: 72
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Server: Virtuoso/07.00.3202 (Linux) x86_64-unknown-linux-gnu  
< Connection: Keep-Alive
< Content-Type: text/html; charset=UTF-8
< Date: Tue, 09 Apr 2013 18:58:51 GMT
< Accept-Ranges: bytes
< Content-Length: 0
< 
* Connection #0 to host localhost left intact
* Closing connection #0
iv@octo:~/wb$ isql $PORT
Connected to OpenLink Virtuoso
Driver: 06.04.3134 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> sparql select * from <http://www.ebremer.com/log> where
{ ?s ?p ?o };
s
p
o
VARCHAR
VARCHAR
VARCHAR
_______________________________________________________________________________

http:/www.ebremer.com/foaf.rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://xmlns.com/foaf/0.1/Person

1 Rows. -- 1 msec.
SQL> exit;

so text/turtle is supported now without any additional heuristics.

Best Regards

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com

On Tue, 2013-04-09 at 08:10 -0400, Erich Bremer wrote:
> Hi Hugh,
> 
> virtuoso-t -?
> Virtuoso Open Source Edition (multi threaded)
> Version 6.1.6.3127-pthreads as of Oct 26 2012
> Compiled for Linux (x86_64-unknown-linux-gnu)
> Copyright (C) 1998-2012 OpenLink Software
> 
> The command I use is:
>  curl -v -T single.ttl -H Content-type:text/turtle
> http://localhost:8890/sparql-graph-crud?graph-uri=http://www.ebremer.com/log 
> -X PUT
> 
> *********** Results **********
> * About to connect() to localhost port 8890 (#0)
> *   Trying 127.0.0.1...
> * connected
> * Connected to localhost (127.0.0.1) port 8890 (#0)
> > PUT /sparql-graph-crud?graph-uri=http://www.ebremer.com/log HTTP/1.1
> > User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0
> NSS/3.13.5.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.2
> > Host: localhost:8890
> > Accept: */*
> > Content-type:text/turtle
> > Content-Length: 72
> > Expect: 100-continue
> >
> < HTTP/1.1 100 Continue
> * We are completely uploaded and fine
> < HTTP/1.1 500 Internal Server Error
> < Server: Virtuoso/06.01.3127 (Linux) x86_64-unknown-linux-gnu
> < Connection: Keep-Alive
> < Content-Type: text/html; charset=UTF-8
> < Date: Tue, 09 Apr 2013 12:09:21 GMT
> < Accept-Ranges: bytes
> < Content-Length: 298
> <
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> <html>
>   <head>
>     <title>Error 22023</title>
>   </head>
>   <body>
>     <h3>Error 22023</h3><pre>
> The PUT request for graph &lt;http://www.ebremer.com/log&gt; is
> rejected: the submitted resource is of unsupported type text/plain
>   </pre></body>
> </html>
> * Connection #0 to host localhost left intact
> * Closing connection #0
> 
> **************** END OF LINE ***************************************
> 
> 
> 
> 
> 
> 
> 
> On 4/8/2013 10:06 PM, Hugh Williams wrote:
> 
> > Hi Eric, 
> > 
> > 
> > Please provide the specific command and complete output being
> > returned, as if I perform the upload of the "single.ttl" file you
> > provide using the /sparql-graph-crud  upload method as you provide
> > in one of your examples back in January, then it uploads fine for me
> > against the latest open source develop/6 or commercial builds:
> > 
> > 
> > $ virtuoso-t -?
> > Virtuoso Open Source Edition (Row Store) (multi threaded)
> > Version 6.1.7-rc1.3127-pthreads as of Apr  8 2013
> > Compiled for Linux (x86_64-unknown-linux-gnu)
> > Copyright (C) 1998-2013 OpenLink Software
> > 
> > 
> > $ more single.ttl 
> > <http:/www.ebremer.com/foaf.rdf> a
> > <http://xmlns.com/foaf/0.1/Person> .
> > $ curl -v -T single.ttl  -H Content-type:text/turtle
> >  http://localhost:8890/sparql-graph-crud?graph-uri=http%3A%2F%
> > 2Fexample.com%2F
> > * About to connect() to localhost port 8890 (#0)
> > *   Trying ::1...
> > * connected
> > * Connected to localhost (::1) port 8890 (#0)
> > > PUT /sparql-graph-crud?graph-uri=http%3A%2F%2Fexample.com%2F
> > HTTP/1.1
> > > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
> > OpenSSL/0.9.8r zlib/1.2.5
> > > Host: localhost:8890
> > > Accept: */*
> > > Content-type:text/turtle
> > > Content-Length: 72
> > > Expect: 100-continue
> > > 
> > < HTTP/1.1 100 Continue
> > * We are completely uploaded and fine
> > < HTTP/1.1 200 OK
> > < Server: Virtuoso/07.00.3202 (Linux)
> > i686-generic-linux-glibc212-64  VDB
> > < Connection: Keep-Alive
> > < Content-Type: text/html; charset=UTF-8
> > < Date: Tue, 09 Apr 2013 01:46:57 GMT
> > < Accept-Ranges: bytes
> > < Content-Length: 0
> > < 
> > * Connection #0 to host localhost left intact
> > * Closing connection #0
> > $
> > $ isql 1111
> > Connected to OpenLink Virtuoso
> > Driver: 06.01.3127 OpenLink Virtuoso ODBC Driver
> > OpenLink Interactive SQL (Virtuoso), version 0.9849b.
> > Type HELP; for help and EXIT; to exit.
> > SQL> sparql select * from <http://example.com/> where {?s ?p ?o};
> > s
> > p
> > o
> > VARCHAR
> > VARCHAR
> > VARCHAR
> > _______________________________________________________________________________
> > 
> > 
> > http:/www.ebremer.com/foaf.rdf
> >                http://www.w3.org/1999/02/22-rdf-syntax-ns#type
> > http://xmlns.com/foaf/0.1/Person
> > 
> > 
> > 1 Rows. -- 2 msec.
> > SQL> 
> > 
> > 
> > Thus please confirm the version of the Virtuoso build you are using
> > and the load method being used ...
> >  
> > 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 8 Apr 2013, at 15:39, Erich Bremer <[email protected]> wrote:
> > 
> > > Hi Hugh,
> > > 
> > >     Yes, the first file is "single.ttl" containing the one line:
> > > 
> > > <http:/www.ebremer.com/foaf.rdf> a
> > > <http://xmlns.com/foaf/0.1/Person> .
> > > 
> > > The second file is "s2.ttl" containing two lines:
> > > 
> > > @prefix foaf: <http://xmlns.com/foaf/0.1/Person> .
> > > <http:/www.ebremer.com/foaf.rdf> a
> > > <http://xmlns.com/foaf/0.1/Person> .
> > > 
> > > The first file fails with the error message:
> > > "The PUT request for graph &lt;http://www.ebremer.com/log&gt; is
> > > rejected: the submitted resource is of unsupported type
> > > text/plain"
> > > 
> > > The second file succeeds and I am not even using the foaf: prefix
> > > in the one triple which is the same triple from the first file.  I
> > > used curl to do the upload using the PUT operation and
> > > sparql-graph-crud.
> > > 
> > >             - Erich
> > > 
> > > Erich Bremer
> > > http://www.ebremer.com
> > > 
> > > On 4/7/2013 7:06 PM, Hugh Williams wrote:
> > > 
> > > > Hi Erich, 
> > > > 
> > > > 
> > > > Are you able to provide a sample sparql-graph-crud upload query
> > > > showing this problem ?
> > > > 
> > > > 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 7 Apr 2013, at 16:52, Erich Bremer <[email protected]> wrote:
> > > > 
> > > > > When trying to upload data to sparql-graph-crud, the upload
> > > > > will fail if there are no PREFIX statements at the top of the
> > > > > file even though no prefixes are used anywhere in the turtle
> > > > > document.  The upload appears to succeed if any "@prefix"
> > > > > statement is added to the top of the file (even though none
> > > > > are needed).  I hadn't noticed the issue before in working
> > > > > with sparql-graph-crud since nearly everything I do has
> > > > > @prefix statements, but in a new project I am doing, I don't
> > > > > use them.  In looking over the turtle specification:
> > > > > http://www.w3.org/TeamSubmission/turtle/
> > > > > in section 2.1 RDF Terms, it states, "URIs may also be
> > > > > abbreviated by using Turtle's @prefix directive".  "may" being
> > > > > optional.
> > > > > 
> > > > >  - Erich
> > > > > 
> > > > > Erich Bremer
> > > > > http://www.ebremer.com
> > > > > 
> > > > > 
> > > > > ------------------------------------------------------------------------------
> > > > > Minimize network downtime and maximize team effectiveness.
> > > > > Reduce network management and security costs.Learn how to
> > > > > hire 
> > > > > the most talented Cisco Certified professionals. Visit the 
> > > > > Employer Resources Portal
> > > > > http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________
> > > > > Virtuoso-users mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> > > > 
> > > > 
> > > 
> > > 
> > > ------------------------------------------------------------------------------
> > > Minimize network downtime and maximize team effectiveness.
> > > Reduce network management and security costs.Learn how to hire 
> > > the most talented Cisco Certified professionals. Visit the 
> > > Employer Resources Portal
> > > http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________
> > > Virtuoso-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> > 
> > 
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________ Virtuoso-users mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users



------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to