Hi Erich,

I suspect you will find 6.1.6 supports application/x-turtle -- I recall 
similar issues when I first started using Virtuoso.


Best regards,
Dave

On 10/04/13 12:45 PM, Erich Bremer wrote:
> Hi Ivan,
>
>       I have it set as text/turtle.  Hugh said it works fine in the pre
> 6.1.7 (where it doesn't work in 6.1.6), the work-around is easy for now
> until I can upgrade to 6.1.7.  I had never noticed before since
> everything I had done to date had at least one prefix defined at the top
> of the turtle document.  In what I am doing now, I am sending Apache
> generated RDF http logs without prefixes to save a little bit of
> bandwidth by pre-defining the prefixes on the server.  Each http
> connection generates 23 triples.  It is just as easy to add the prefixes
> in the RDF log definition.   - Erich
>
> On 4/9/2013 2:53 PM, Ivan Mikhailov wrote:
>> Hello Erich,
>>
>> Was the MIME type of the file properly specified in request by the
>> client? If it's specified as some default like "text/plain" or not
>> specified at all then the server tries to guess the MIME by looking at
>> keywords and/or XML structure.
>> I guess that @prefix worked as a hint to understand that it's an Turtle
>> whereas words like <http:/www.ebremer.com/foaf.rdf> were too ambiguous.
>>
>> Best Regards,
>>
>> Ivan Mikhailov
>> OpenLink Software
>> http://virtuoso.openlinksw.com
>>
>> On Mon, 2013-04-08 at 10:39 -0400, Erich Bremer 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
>>> _______________________________________________ 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