Hi,
sorry I didn't mean to do that, unless it's a good thing :-)
Well Joseki is a Java web-app deployed buy default in Jetty. Uses Jena as
you say to assemble the models. Joseki uses a configuration file written in
N3, following the Assembler [1] to configure the services, the dataset and
the models. As I understand you'll end up with at least 2 models, and 1
dataset combining them, and one service to publish that dataset. Joseki
configuration [2] is a good point to start. What I previously mailed is a
workaround to define in the assembler file that the D2rqModel is a Jena
model, so then it will allow me to assemble it.
Joseki has a default configuration file as example. D2R-Server I think it
hasn't this files, as it configures the Joseki programatically to serve the
D2rqModel. Here in this list the researchers/developers could tell you
better.
Hope you can configure a solution for what you need.
Best regards
Luis Ignacio Larrateguy
UTN-FRSF
[1] http://jena.sourceforge.net/assembler/assembler-howto.html
<http://jena.sourceforge.net/assembler/assembler-howto.html>[2]
http://www.joseki.org/configuration.html
On Wed, Nov 10, 2010 at 12:15 PM, Diogo FC Patrao <[email protected]>wrote:
> Hi Luis,
>
> Thanks for your reply, but it generated more doubts =)
>
> Just to be sure: Joseki is "just" the sparql server, right? Jena is the one
> that groups all datasources together (in this case, the RDF data and the
> d2rq mapped databases). Their communication is all by API?
>
> Thanks!
>
>
> Diogo F.C. Patrão
> Manager of Medical Informatics
> Biotechnology Laboratory
> Hospital A.C. Camargo
> http://www.accamargo.org.br/
>
>
> On Wed, Nov 10, 2010 at 12:26 PM, Luis Ignacio Larrateguy <
> [email protected]> wrote:
>
>> Sorry,
>> I forgot to quote that if you are looking to serve a vocabulary then you
>> can try to do a model as a union, or configure a new service, a new model,
>> etc.
>> Here, at Joseki doc[1], you'll find more information.
>>
>> best regards
>>
>> Luis Ignacio Larrateguy
>>
>> [1] http://www.joseki.org/configuration.html
>>
>> On Wed, Nov 10, 2010 at 11:22 AM, Luis Ignacio Larrateguy <
>> [email protected]> wrote:
>>
>>> Hi Diogo,
>>> I'm interested in what you are asking. I did some trials about that, not
>>> using D2R-server but Joseki and D2RQ -indeed, d2r-server uses Joseki and
>>> d2rq but tight to a Java class that initializes the Model. If you find a way
>>> to do it in d2r-server let me know.
>>>
>>> In the meantime you can try configuring a Joseki server with the d2rq
>>> jars. You'll have to edit the config.n3 for you Joseki to understand d2rq
>>> models as Jena models using:
>>>
>>>
>>> After that include the model configuration as:
>>> #adding the preffix:
>>> @prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
>>> @prefix d2r: <
>>> http://sites.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/config.rdf#> .
>>>
>>> # adding the model subclass. I used NamedModel o try inference, you could
>>> try just Model.
>>> <> ja:imports d2rq: .
>>> d2rq:D2RQModel
>>> rdfs:subClassOf ja:NamedModel;
>>> ja:assembler "de.fuberlin.wiwiss.d2rq.assembler.D2RQAssembler";
>>> .
>>>
>>> _:modeld2rq a d2rq:D2RQModel;
>>> ja:modelName "http://modeluriname/";
>>> d2rq:mappingFile <file:your_mapping.n3>;
>>> d2rq:resourceBaseURI <http://modeluri/#>;
>>> .
>>>
>>> # adding the dataset
>>> _:siteNoInf rdf:type ja:RDFDataset ;
>>> rdfs:label "Site No Inference D2R Server dataset (only default
>>> graph)";
>>> ja:defaultGraph _:modeld2rq2;
>>> .
>>>
>>> # now the service
>>> []
>>> rdf:type joseki:Service ;
>>> rdfs:label "SPARQL on siteNoInf" ;
>>> joseki:serviceRef "siteNoInf" ;
>>> # dataset part
>>> joseki:dataset _:siteNoInf ;
>>> # Service part.
>>> # This processor will not allow either the protocol,
>>> # nor the query, to specify the datset.
>>> joseki:processor joseki:ProcessorSPARQL_FixedDS ;
>>> .
>>>
>>> Well, you might have to update your WEB-INF/web.xml to match the name of
>>> the service you've just configured.
>>>
>>> That worked for me. May be you can adjust this code for your purpose.
>>>
>>> Regards
>>>
>>> Luis Ignacio Larrateguy
>>>
>>> On Wed, Nov 10, 2010 at 11:02 AM, Diogo FC Patrao <[email protected]
>>> > wrote:
>>>
>>>> Hello again,
>>>>
>>>>
>>>> I found this * post, where Christian Becker says
>>>>
>>>> "D2R can currently only serve vocabulary information that it generates
>>>> on the fly, i.e. it can not serve the vocabulary file that you wrote
>>>> yourself."
>>>>
>>>> 1) Does that means that if I generate a RDF dump, I can't use D2RQ to
>>>> integrate this dump with a "live" database?
>>>>
>>>> 2) Is serving vocabulary information on D2R's plans for the future? When
>>>> would we expect this to happen?
>>>>
>>>>
>>>> Thanks
>>>>
>>>> *
>>>> http://sourceforge.net/mailarchive/forum.php?thread_name=46121B6F-2DCA-4D05-9703-3D2AF59220B2%40beckr.org&forum_name=d2rq-map-devel
>>>>
>>>> Diogo F.C. Patrão
>>>> Manager of Medical Informatics
>>>> Biotechnology Laboratory
>>>> Hospital A.C. Camargo
>>>> http://www.accamargo.org.br/
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>>>> David G. Thomson, author of the best-selling book "Blueprint to a
>>>> Billion" shares his insights and actions to help propel your
>>>> business during the next growth cycle. Listen Now!
>>>> http://p.sf.net/sfu/SAP-dev2dev
>>>> _______________________________________________
>>>> d2rq-map-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>>>>
>>>>
>>>
>>>
>>> --
>>> Luis Larrateguy
>>> Blog: http://nacho.larrateguy.com.ar/
>>> Web: http://larrateguy.com.ar/luisignacio
>>>
>>
>>
>>
>> --
>> Luis Larrateguy
>> Blog: http://nacho.larrateguy.com.ar/
>> Web: http://larrateguy.com.ar/luisignacio
>>
>
>
--
Luis Larrateguy
Blog: http://nacho.larrateguy.com.ar/
Web: http://larrateguy.com.ar/luisignacio
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel