Return-Path: X-Original-To: apmail-incubator-stanbol-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-stanbol-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5FBC704D for ; Tue, 9 Aug 2011 16:03:01 +0000 (UTC) Received: (qmail 15501 invoked by uid 500); 9 Aug 2011 16:03:01 -0000 Delivered-To: apmail-incubator-stanbol-dev-archive@incubator.apache.org Received: (qmail 15460 invoked by uid 500); 9 Aug 2011 16:03:00 -0000 Mailing-List: contact stanbol-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stanbol-dev@incubator.apache.org Delivered-To: mailing list stanbol-dev@incubator.apache.org Received: (qmail 15452 invoked by uid 99); 9 Aug 2011 16:03:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 16:03:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christ.fabian@googlemail.com designates 209.85.218.47 as permitted sender) Received: from [209.85.218.47] (HELO mail-yi0-f47.google.com) (209.85.218.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 16:02:56 +0000 Received: by yia28 with SMTP id 28so107051yia.6 for ; Tue, 09 Aug 2011 09:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=41+/L7ENbBGVaUOs4bnK7lrQ7ue4JlBKaHPwFgK2kvM=; b=Ct78aNH2F4O+A/5Tx9zpLflOKcgixMnk1Oh0FanpZ+BgMu/O20TjIhbjb9kQ78pu9K kjP9txbL+QFQTL07DJ80o3jYh4PI6bpsOR7BgbTpVJrYVlHyJBKmPaqE/5cu357Yq6Gt Y8B8oi/MxvNF3Y+CarlUzek8ctWds+MCq7VcI= MIME-Version: 1.0 Received: by 10.42.157.69 with SMTP id c5mr927926icx.165.1312905755392; Tue, 09 Aug 2011 09:02:35 -0700 (PDT) Received: by 10.42.222.198 with HTTP; Tue, 9 Aug 2011 09:02:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Aug 2011 18:02:35 +0200 Message-ID: Subject: Re: FactStore, what media-type to submit facts? From: Fabian Christ To: stanbol-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I think the media type should be application/json but maybe this is a bug. You can have a look at the documentation web-site that is presented when launching Stanbol at http://localhost:8080/factstore. See the REST API documentation and the examples there. Note, that the FactStore is still incomplete and not tested that much. That's why I didn't promote it yet in public to use. I will go on with the work on the FactStore after my holidays in about two weeks. Best, - Fabian 2011/8/9 Reto Bachmann-Gm=C3=BCr : > 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" : { =C2=A0 "iks" : "http://iks-project.eu/ont/", =C2=A0 "upb= " : > "http://upb.de/persons/" }, "@profile" =C2=A0 =C2=A0 : "iks:employeeOf", > "person" =C2=A0 =C2=A0 =C2=A0 : { "@iri" : "upb:bnagel" }, "organization"= : { "@iri" > : "http://uni-paderborn.de"}} > > > HTTP/1.1 415 Unsupported Media Type > > Content-Type: text/html; charset=3Diso-8859-1 > > Cache-Control: must-revalidate,no-cache,no-store > > Content-Length: 1406 > > Server: Jetty(6.1.x) > > Cheers, > Reto > --=20 Fabian http://twitter.com/fctwitt