Hi again Melanie,

On 08/11/2012 04:30 PM, Melanie Reiplinger wrote:
> Hi Stanbol people,
>
> I have a few questions concerning the cmsadapter.
>
> 1)
> To map a content repository to an RDF graph,
>
> curl -i -X POST -d
> "sessionKey=eec8ff46-aaf9-485f-a7b5-452c1d7197d0&baseURI=[some_uri]&store=true"
> http://[stanbol]/cmsadapter/map/cms
>
> does not work for me. (I get 500 internal server error)

Maybe the logs may indicate something. In any case, I guess that you
need to configure a RDF Bridge through the
{stanbol}/system/console/configMgr interface. There you should find the
"Apache Stanbol CMS Adapter Default RDF Bridge Configurations". In that
configuration you specify the root path in the CMS to be exported to the
RDF.

> The documentation says:
> *"baseURI*is a mandatory parameter that is used as the base URI of the
> RDF to be generated."
>
> Why is this baseURI needed here as mandatory parameter, if the RDF
> graph is returned to the user in application/rdf+xml format?
>
> And what can I specify as baseURI (does it work with a local file path
> or directory path)?

You should be able to specify any URI for the base URI. While
transforming the nodes to RDF, corresponding rdf:resources are
identified by appending the identifiers of the nodes to the baseURI e.g.
<rdf:Description
rdf:about="http://www.apache.org/stanbol/cms#432271b6-80a5-41e9-89c0-bc8623c1ad97";>
    ....

>
> 2)
> For the contenthubfeed, I wanted to submit a content item with path
> 'node1/node2' from my repository with:
> curl -i -X POST --data
> "sessionKey=5d934b53-dc33-4d9c-884f-c16c8ba872af&path=/node1/node2&recursive=true"
> http://lnv-89012.dfki.uni-sb.de:9001/cmsadapter/contenthubfeed
> I get 200 OK, but when I look on the contenthub, nothing has changed,
> no new items are listed.
>
> Would it notify me in case it cannot find my repository item (e.g. for
> wrong name or wrong path)?

This can be seen from the logs. Considering the possibility of checking
multiple items when recursive=true, I had not passed the exception to
the client side. Maybe this should be improved...

Best,
Suat

>
> (I was trying for JCR/RMI)
>
> Thanks,
> melanie
>

Reply via email to