Hi,

On 08/13/2012 01:44 PM, Melanie Reiplinger wrote:
> Hi Suat,
>
> Am 13.08.2012 11:20, schrieb Suat Gonul:
>> 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.
> log is:
>
> 13.08.2012 13:43:26.423 *WARN* [30251362@qtp-23261232-111]
> org.apache.stanbol.cmsadapter.jcr.mapping.JCRRDFMapper Failed to
> retrieve node having path: /rdfmaptest or its children
>
> ok, so I need to configure the path.
>
>> 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.
>
> by that you mean the content repository path? This means that I set
> there the path to my content repository? 

Yes, you set there a path residing in the content repository.

> I have set up a jackrabbit workspace with some toy nodes in it. To
> access it remotely, I'd configure something like
> http://[myserver]/server/
> <http://lnv-89012.dfki.uni-sb.de:9002/server/default/node1>, but then
> I can work with this repository exclusively, right?

 I cannot access the URL you gave, but I guess you should give /node1
path to export it as RDF. I didn't get your question about working
exclusively with the repository. But, you already seem to work on the
default repository of Jackrabbit running on your server.

Best,
Suat

>
>>> 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.
>
> ok, it couldn't resolve the path:
>
> 13.08.2012 13:43:32.576 *WARN* [30251362@qtp-23261232-111]
> org.apache.stanbol.cmsadapter.jcr.mapping.JCRContenthubFeeder Failed
> to obtain the item specified by the path: /node1/node2
> javax.jcr.PathNotFoundException: /node1/node2
>
> but that's also due to the wrong content repository path.
>
> g
> melanie
>
>> 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