No exceptions, and yes I am trying to create a brand new Repo each time.

The schema file the format is RDF/XML. (This file will load properly manually).

I am expecting that the contents of the repo after creation to contain the 
statements from the selected rule set, plus my schema statements. I do see the 
rule set statements, just not any of my schema statements.

Mark


-----Original Message-----
From: Ivan Peikov [mailto:[email protected]] 
Sent: Tuesday, February 23, 2010 11:27 AM
To: Mark Larkin
Subject: Re: [Owlim-discussion] Schema Import and Custom Rules for a Tomcat 
hosted OWLIM Repository

Oh, and this will work only if you are initializing a brand new repository. 
Not if you are re-initializing an old one.

On Tuesday 23 February 2010 18:23:45 Ivan Peikov wrote:
> And is there any exception printed out? Is the format of the schema file
> RDF/XML?
>
> On Tuesday 23 February 2010 18:18:16 you wrote:
> > Not sure I have set this up correctly for the schema import. I have set
> > it up as specified, but it is not importing the schema. Is the syntax you
> > specified correct? Do it need to {%  %} stuff as the rest of the params
> > have:
> >
> > My duff.ttl:
> > =========================================
> > #
> > # Sesame configuration template for a owlim repository
> > #
> > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
> > @prefix rep: <http://www.openrdf.org/config/repository#>.
> > @prefix sr: <http://www.openrdf.org/config/repository/sail#>.
> > @prefix sail: <http://www.openrdf.org/config/sail#>.
> > @prefix owlim: <http://www.ontotext.com/trree/owlim#>.
> >
> > [] a rep:Repository ;
> >    rep:repositoryID "{%Repository ID|owlim%}" ;
> >    rdfs:label "{%Repository title|Owlim Store%}" ;
> >    rep:repositoryImpl [
> >       rep:repositoryType "openrdf:SailRepository" ;
> >       sr:sailImpl [
> >          sail:sailType "swiftowlim:Sail" ;
> >          owlim:ruleset "{%Ruleset|owl-horst%}" ;
> >          owlim:partialRDFS  "{%Partial RDFS|false%}" ;
> >          owlim:storage-folder "{%Storage folder|owlim-storageXXXX%}" ;
> >          owlim:console-thread "{%Console thread|false%}" ;
> >          owlim:repository-type "{%Repository type|file-repository%}" ;
> >       owlim:imports "C:/chome/duff.rdfs" ;
> >       owlim:defaultNS "http://www.mycomp.com/owl/duff#"; ;
> >       ]
> >    ].
> > =============================================
> >
> > Mark Larkin
> >
> > -----Original Message-----
> > From: Ivan Peikov [mailto:[email protected]]
> > Sent: Tuesday, February 23, 2010 9:53 AM
> > To: [email protected]
> > Cc: Mark Larkin
> > Subject: Re: [Owlim-discussion] Schema Import and Custom Rules for a
> > Tomcat hosted OWLIM Repository
> >
> > Hi Mark,
> >
> > On your questions:
> >
> > 1/ You can do importing of a certain RDF schema automatically by
> > specifying the following parameters in the repository's .ttl
> > configuration file:
> >
> >   owlim:imports "/path/to/schema.rdf" ;
> >   owlim:defaultNS "http://example.com/baseURI#"; ;
> >
> > Remember to add both of the parameters. The "imports" parameter might
> > contain more than a single schema file, separated by semicolon. The
> > "defaultNS" parameter should contain exactly as many default namespace
> > URIs as the number of imported schemata.
> >
> > 2/ If you prepare your own .pie file you can put it anywhere you want and
> > then specify the path to it in the "ruleset" parameter, e.g.
> >
> >   owlim:ruleset "/home/user/custom.pie"
> >
> > The file should end with .pie extension and will be compiled as the owlim
> > engine is initialized.
> >
> >
> > Cheers,
> > Ivan
> >
> > On Tuesday 23 February 2010 15:00:20 Mark Larkin wrote:
> > > Hello,
> > >
> > >
> > >
> > > I am currently working with an SwiftOWLIM/Sesame (3.0beta12) Repository
> > > hosted by Tomcat. I use to the Sesame Workbench to create the initial
> > > repository based on the ttl file shown below. I currently manually load
> > > a schema file using RepositoryConnection.add(). All works fine.
> > >
> > >
> > >
> > > My questions are the following:
> > >
> > > 1)      How do I set this up to import a schema automatically rather
> > > than the manual load I currently do. What is the proper syntax in the
> > > ttl file to specify this and where does the schema file need to be
> > > placed?
> > >
> > >
> > >
> > > 2)      If I wish to write some custom rules (I would start with an
> > > existing pie file such as Rule_builtin.pie and add to it), how do I
> > > specify to use this custom rule set and where would I put the pie file?
> > >
> > >
> > >
> > > Mark
> > >
> > >
> > >
> > > ======================================================
> > >
> > > #
> > >
> > > # Sesame configuration template for a owlim repository
> > >
> > > #
> > >
> > > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
> > >
> > > @prefix rep: <http://www.openrdf.org/config/repository#>.
> > >
> > > @prefix sr: <http://www.openrdf.org/config/repository/sail#>.
> > >
> > > @prefix sail: <http://www.openrdf.org/config/sail#>.
> > >
> > > @prefix owlim: <http://www.ontotext.com/trree/owlim#>.
> > >
> > >
> > >
> > > [] a rep:Repository ;
> > >
> > >    rep:repositoryID "{%Repository ID|owlim%}" ;
> > >
> > >    rdfs:label "{%Repository title|Owlim Store%}" ;
> > >
> > >    rep:repositoryImpl [
> > >
> > >       rep:repositoryType "openrdf:SailRepository" ;
> > >
> > >       sr:sailImpl [
> > >
> > >          sail:sailType "swiftowlim:Sail" ;
> > >
> > >          owlim:ruleset "{%Ruleset|owl-horst%}" ;
> > >
> > >          owlim:partialRDFS  "{%Partial RDFS|false%}" ;
> > >
> > >          owlim:storage-folder "{%Storage folder|owlim-storageXXXX%}" ;
> > >
> > >          owlim:console-thread "{%Console thread|false%}" ;
> > >
> > >          owlim:repository-type "{%Repository type|file-repository%}" ;
> > >
> > >       ]
> > >
> > >    ].
> > >
> > > ======================================================


_______________________________________________
OWLIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/owlim-discussion

Reply via email to