Hi Benjamin

SKOS Concepts are expected to have the rdf:type skos:Concept. This
message is telling you that the RDF graph you sent to the Topic engine
has not contained any instance of that type (see also [2]). If you
search the web you will find a lot of good tutorials for SKOS.

best
Rupert

[2] http://www.w3.org/TR/skos-primer/#secconcept


On Fri, Nov 22, 2013 at 1:45 PM, Benjamin Grössing
<e1025...@student.tuwien.ac.at> wrote:
> Hello Rupert,
>
> well, I did try to set the Content-Type header to "application/xml"
> but I did not think of "application/rdf+xml" :-) The server now
> accepts the request, thank you!
>
> However, the output I get is "Could not find any instances of
> 'http://www.w3.org/2004/02/skos/core#Concept' in payload.". I have
> tried several files from [1], but in fact I don't exactly know what
> input is expected here. The docs (i.e. [2]) are also not very clear
> about that, unfortunately. Did we miss something here?
>
> I would appreciate if you could clarify what file should be used here
> or provide us a starting point for research.
>
> Regards
> Benjamin
>
> [1] http://www.w3.org/2004/02/skos/vocabs
> [2] 
> http://blog.iks-project.eu/wp-content/uploads/TopicEngineClassification1.pdf
>
> 2013/11/22 Rupert Westenthaler <rupert.westentha...@gmail.com>:
>> Hi Benjamin
>>
>>  The error in [3] says that it can not parse an RDF graph from
>> "application/x-www-form-urlencoded". So I guess that setting the
>> ContentType header of your POST request to "application/rdf+xml"
>> should fix the problem.
>>
>> best
>> Rupert
>>
>> On Fri, Nov 22, 2013 at 11:37 AM, Benjamin Grössing
>> <e1025...@student.tuwien.ac.at> wrote:
>>> Hello Rupert,
>>>
>>> thanks a lot for your quick response and the bug fix in STANBOL-1142!
>>> I have switched to branch release-0.12 and building, installing and
>>> running the topic engine now works like charm.
>>>
>>> Unfortunately when I follow the tutorial [1] and do the next step,
>>> which is executing "curl -X POST --data @skos.rdf.xml
>>> http://localhost:8080/topic/model/dbpedia-category-model"; with
>>> skos.rdf.xml from [2], the response is "HTTP ERROR: 415". The server
>>> log shows this: [3].  POSTing single concepts works; the error only
>>> occurs for the RDF/XML file.
>>>
>>> Do you have any idea what I might be doing wrong?
>>>
>>> Regards
>>> Benjamin Groessing
>>>
>>> [1] http://www.iks-project.eu/sites/default/files/Topic-Classification.pdf
>>> [2] http://www.w3.org/TR/skos-reference/skos.rdf
>>> [3] https://gist.github.com/groe/94494930d6dcae2f9719
>>>
>>> 2013/11/19 Rupert Westenthaler <rupert.westentha...@gmail.com>:
>>>> Hi Benjamin
>>>>
>>>> While adding the TopicEngine modules to the Enhancer bundlelist [3] I
>>>> noticed that there is indeed a failure in the pom.xml file of the
>>>> topic engine module that also affects the 0.12 releasing branch. This
>>>> is the error referenced by your original message with
>>>>
>>>> On Mon, Nov 18, 2013 at 6:54 PM, Benjamin Grössing
>>>> <e1025...@student.tuwien.ac.at> wrote:
>>>>> We tried some things to get that to work as well (like
>>>>> removing this from the pom.xml of the engine bundle:
>>>>> https://gist.github.com/groe/1bb119dc7e04ae29b40e
>>>>
>>>> As this was introduced by STANBOL-1142 [2] I will reopen this issue to
>>>> correct this in both the 0.12 releasing branch as well as the trunk.
>>>>
>>>> Thanks for reporting this. Its always good to fix issues like that
>>>> before an upcoming release!
>>>>
>>>> best
>>>> Rupert
>>>>
>>>>> [1] http://svn.apache.org/repos/asf/stanbol/branches/release-0.12/
>>>>> [2] https://issues.apache.org/jira/browse/STANBOL-1142
>>>> [3] https://issues.apache.org/jira/browse/STANBOL-1213
>>>> --
>>>> | Rupert Westenthaler             rupert.westentha...@gmail.com
>>>> | Bodenlehenstraße 11                             ++43-699-11108907
>>>> | A-5500 Bischofshofen
>>>>
>>
>>
>>
>> --
>> | Rupert Westenthaler             rupert.westentha...@gmail.com
>> | Bodenlehenstraße 11                             ++43-699-11108907
>> | A-5500 Bischofshofen
>>



-- 
| Rupert Westenthaler             rupert.westentha...@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to