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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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