Hi,

If you have access to config file just add somewhere:
## Uniprot ontology
<#pcore_graph> rdf:type ja:MemoryModel ;
  ja:content [ ja:externalContent
<file:///srv/fuseki/other/uniprot-core.owl> ] ;
  .

than you should merge it with the rest. In my case I created ja:UnionModel
which bring together TDB stuff + some files:
<#union_model> rdf:type ja:UnionModel ;
   ja:rootModel <#tdb_graph1> ;
   ja:subModel     <#taxon_graph> ;
   ja:submodel     <#pcore_graph> ;
   ja:subModel    <#pho_graph> ;
   .

After I added it to ja:RDFDataset:

<#merged_dataset> rdf:type ja:RDFDataset ;
 ja:defaultGraph <#union_model> ;
 .


And finally published it by:
<#all_data_service> rdf:type fuseki:Service ;
  rdf:label "Phibase RDF" ;
  fuseki:name "phibase" ;
   fuseki:serviceQuery "query" ;
   fuseki:serviceQuery "sparql" ;
   fuseki:serviceReadGraphStore    "data" ;
   fuseki:serviceReadGraphStore    "get" ;
   fuseki:dataset           <#merged_dataset> ;
    .

and:

[] rdf:type fuseki:Server;

   fuseki:services (
   <#all_data_service>
   ) .


With that configuration all data are in the same default graph. So if you
bother named graph it is not proper solution. In my case I do not care so I
am happy of that. I guess there is some cleaner configuration but that
particular configuration works for now.

Regards,
Jacek

PS. My config file is here: http://goo.gl/psc1Bb



On 24 February 2014 15:53, 安银玲 <[email protected]> wrote:

> Hello.
> Thank you for your reply. But I'm not quite sure about what you have said.
> How can I do that?
>
>
> An,
>
>
> 2014-02-24 21:00 GMT+09:00 Jacek Grzebyta <[email protected]>:
>
> > Hi,
> >
> > You can attach the file directly by configuration:
> >
> > eg:
> > <#prefix_graph> rdf:type ja:MemoryModel ;
> >    ja:content [ ja:externalContent
> <file:///srv/fuseki/other/prefixes.ttl>
> > ] ;
> >    .
> >
> > Than you will have a memory model with that content.
> >
> > Regards,
> > Jacek
> >
> >
> > On 24 February 2014 11:55, 安银玲 <[email protected]> wrote:
> >
> > > Hello.
> > > Now I am using Jena fuseki with TDB.
> > > And I have followed the tutorial to run the fuseki server.  I have used
> > > localhost control panel. Then I want to upload some files to persistent
> > > memory.
> > >
> > > Here is the question,
> > > Why I could not upload any file(like .owl, .ttl) through the user
> > > interface.
> > > I have tried many ways, I am wondering if the file size if too big, so
> I
> > > have cut it into several files.
> > > And also I am wondering if the syntax is error, so validated the file
> in
> > > the user interface, there is
> > > no error alert.
> > > and at last, I have tried to upload the
> > > ..\jena-fuseki-0.2.7\Data\books.ttl, but still did not work.
> > >
> > > What's the problem? Are there any problem in the system or...
> > >
> > > Expect your reply. Thank you very much.
> > >
> > > All the best,
> > > An.
> > >
> >
>

Reply via email to