Try:

<#document-manager-example> a ja:DocumentManager;
        ja:fileManager [ ja:locationMapper <#mapper> ];
.


(not ja:hasFileManager)

        Andy

On 29/11/13 15:52, Andy Seaborne wrote:
On 29/11/13 15:29, Diogo FC Patrao wrote:
Hi there

Does anybody have any idea on this?

Or, is there a working example of usage of a document manager (for the
latest jena)?

Diogo - I'm going to look at it but it's not a quick thing.  What would
help if testing the dataset description outside Fuseki shows the same
situation.  "arq.sparql--desc"

Also, a standalone, runnable example that I can run, not tied to your
filing system, would be helpful.

     Andy



Thanks!



--
diogo patrão




On Wed, Nov 27, 2013 at 7:05 PM, Diogo FC Patrao
<[email protected]>wrote:

Hello,

I'm setting up an Jena description file [3](which will be loaded by
fuseki
as fuseki-server --desc=file.ttl /ds) to serve an OWL file.

This OWL imports several other OWL - and as we're in development, I
would
not like to publish files in the ontology URI yet. So I'm trying to
set up
a document manager, to map each URIs to a file. However, when I try
to run
fuseki with the file below, it triggers an exception (first three lines
below [2]).

If I follow the documentation [1], I get errors on the ja:fileManager
property.

It's fuseki 1.0.0, downloaded a few days ago.

Thanks in advance!

*[1]*
http://jena.apache.org/documentation/assembler/assembler-howto.html


*[2]*
17:05:24 INFO  Server               :: Dataset from assembler
17:05:48 WARN  OntDocumentManager   :: An error occurred while
attempting
to read from
http://cipe.accamargo.org.br/ontologias/recruit_quimioterapia.owl. Msg
was 'java.net.UnknownHostException: cipe.accamargo.org.br'.
org.apache.jena.atlas.web.HttpException: java.net.UnknownHostException:
cipe.accamargo.org.br


*[3]*
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .

@prefix dm:
<http://jena.hpl.hp.com/schemas/2003/03/ont-manager#>
.
@prefix lm:         <http://jena.hpl.hp.com/2004/08/location-mapping#> .

[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
  tdb:GraphTDB rdfs:subClassOf ja:Model .

<#dataset> rdf:type ja:RDFDataset ;
        ja:defaultGraph <#infModel>.


<#mapper> lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit_biobanco.owl"; ;
lm:altName "file:./ontologias/recruit_biobanco.o$
           lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit_tratamento.owl"; ;
lm:altName "file:./ontologias/recruit_tratamen$
           lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit_quimioterapia.owl"; ;
lm:altName "file:./ontologias/recruit_quimi$
           lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit_cido.owl"; ; lm:altName
"file:./ontologias/recruit_cido.owl" ];
           lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit_cid10.owl"; ; lm:altName
"file:./ontologias/recruit_cid10.owl" ];
           lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit_tnm_6a_edicao.owl"; ;
lm:altName "file:./ontologias/recruit_tnm_6$
           lm:mapping [ lm:name "
http://cipe.accamargo.org.br/ontologias/recruit.owl"; ; lm:altName
"file:./ontologias/recruit.owl" ];
.

<#document-manager-example> a ja:DocumentManager;
         ja:hasFileManager [ ja:locationMapper <#mapper> ];
.

<#myOntModelSpec> a ja:OWL_MEM_MICRO_RULE_INF;
         ja:documentManager <#document-manager-example>;
.




<#infModel> a ja:OntModel ;
        ja:ontModelSpec <#myOntModelSpec>;
        ja:baseModel [a ja:MemoryModel;
        ja:content [ ja:externalContent
<file:./ontologias/recruit.owl> ];

].



--
diogo patrão






Reply via email to