stanbol-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür <r...@apache.org>
Subject FactStore, what media-type to submit facts?
Date Tue, 09 Aug 2011 15:50:16 GMT
Hi

I'm trying to lean more about stanbol and taking notes on my
expirience here: https://farewellutopia.com/blog

Currently I'm stuck trying to use FactStore following the examples on
http://wiki.iks-project.eu/index.php/FactStore_Specification

I created a Fact Scheme but I fail adding facts. What media-type does
faactstore expect? The following request doesn't work:

POST /factstore/facts HTTP/1.1

User-Agent: curl/7.21.3 (i686-pc-linux-gnu) libcurl/7.21.3
OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18

Host: localhost:8080

Accept: */*

Content-Type: application/json

Content-Length: 229



{ "@context" : {   "iks" : "http://iks-project.eu/ont/",   "upb" :
"http://upb.de/persons/" }, "@profile"     : "iks:employeeOf",
"person"       : { "@iri" : "upb:bnagel" }, "organization" : { "@iri"
: "http://uni-paderborn.de"}}


HTTP/1.1 415 Unsupported Media Type

Content-Type: text/html; charset=iso-8859-1

Cache-Control: must-revalidate,no-cache,no-store

Content-Length: 1406

Server: Jetty(6.1.x)

Cheers,
Reto

Mime
View raw message