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
------------------------------------------------------------------------------
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

Reply via email to