Re: IDE setup of Jena-Fuseki source code.
Thanks Andy. It helped me a lot! All works great for now! With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Mon, Oct 3, 2016 at 2:33 PM, Andy Seabornewrote: > Personally, do Fuseki development/debug inside Eclipse. > > There are two ways: > > 1/ Run full Fuseki with UI, doing the setup in Java and calling > FusekiCmd.main > > 2/ Run the embedded server (Fuseki, no UI). > > 1/ Full Fuseki > > To run in Eclipse, you can do all the setup and directly call the "main" > from Java. > > See > https://gist.github.com/afs/3f450ce7198a1e52f67d98e920e30dcb > > and copied below > > Summary: > Set "FUSEKI_HOME", "FUSEKI_BASE" as system properties. > Point FUSEKI_HOME to the development code area for jena-fuseki-core > Call FusekiCmd.main > > 2/ Embedded > > For the next release: if youy have the code, it's in > jena-fuseki-embedded. > > Draft documentation with examples of use: > > http://jena.staging.apache.org/documentation/fuseki2/fuseki-embedded.html > > Andy > > > public class RunFuseki2 > { > public static void main(String[] args) throws Exception { > String BASE = "/home/afs/tmp" ; > String fusekiHome = "/home/afs/Jena/jena-fuseki2/jena-fuseki-core" ; > String fusekiBase = BASE+"/run" ; > System.setProperty("FUSEKI_HOME", fusekiHome) ; > System.setProperty("FUSEKI_BASE", fusekiBase) ; > > String runArea = Paths.get(fusekiBase).toAbsolutePath().toString() ; > FileOps.ensureDir(runArea) ; > FileOps.clearAll(runArea); // * > FusekiCmd.main( >"--conf="+BASE+"/config.ttl" >//"--conf=/home/afs/tmp/conf.ttl" > ) ; > System.exit(0) ; > > } > } > > On 03/10/16 21:21, Jason Koh wrote: > >> Hi all, >> >> I am trying to embed some function (SPIN as talked in another thread) to >> jena-arq so that Fuseki can use it smoothly. I was able to import the >> entire project into eclipse (Neon) but cannot run Fuseki there. What I am >> doing is i) editing and ii) run mvn in the command line (I cannot find >> maven build in Eclipse.), iii) unzip target archive in Fuseki and then iv) >> run the server using ./fuseki-server >> >> I would like to build and run the server as a debug mode in Eclipse so >> that >> I don't have to go through all the above steps. >> >> This is probably due to my lack of knowledge on Eclipse framework, but I >> would appreciate if I could learn how to do it. Either direct >> enlightenment >> or pointers to documents will be appreciated. >> >> Thanks a lot. >> >> >> >> With regards, >> Jason Koh >> cseweb.ucsd.edu/~jbkoh >> >>
Re: IDE setup of Jena-Fuseki source code.
Personally, do Fuseki development/debug inside Eclipse. There are two ways: 1/ Run full Fuseki with UI, doing the setup in Java and calling FusekiCmd.main 2/ Run the embedded server (Fuseki, no UI). 1/ Full Fuseki To run in Eclipse, you can do all the setup and directly call the "main" from Java. See https://gist.github.com/afs/3f450ce7198a1e52f67d98e920e30dcb and copied below Summary: Set "FUSEKI_HOME", "FUSEKI_BASE" as system properties. Point FUSEKI_HOME to the development code area for jena-fuseki-core Call FusekiCmd.main 2/ Embedded For the next release: if youy have the code, it's in jena-fuseki-embedded. Draft documentation with examples of use: http://jena.staging.apache.org/documentation/fuseki2/fuseki-embedded.html Andy public class RunFuseki2 { public static void main(String[] args) throws Exception { String BASE = "/home/afs/tmp" ; String fusekiHome = "/home/afs/Jena/jena-fuseki2/jena-fuseki-core" ; String fusekiBase = BASE+"/run" ; System.setProperty("FUSEKI_HOME", fusekiHome) ; System.setProperty("FUSEKI_BASE", fusekiBase) ; String runArea = Paths.get(fusekiBase).toAbsolutePath().toString() ; FileOps.ensureDir(runArea) ; FileOps.clearAll(runArea); // * FusekiCmd.main( "--conf="+BASE+"/config.ttl" //"--conf=/home/afs/tmp/conf.ttl" ) ; System.exit(0) ; } } On 03/10/16 21:21, Jason Koh wrote: Hi all, I am trying to embed some function (SPIN as talked in another thread) to jena-arq so that Fuseki can use it smoothly. I was able to import the entire project into eclipse (Neon) but cannot run Fuseki there. What I am doing is i) editing and ii) run mvn in the command line (I cannot find maven build in Eclipse.), iii) unzip target archive in Fuseki and then iv) run the server using ./fuseki-server I would like to build and run the server as a debug mode in Eclipse so that I don't have to go through all the above steps. This is probably due to my lack of knowledge on Eclipse framework, but I would appreciate if I could learn how to do it. Either direct enlightenment or pointers to documents will be appreciated. Thanks a lot. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh
Re: IDE setup of Jena-Fuseki source code.
Actually, I imported the project as java project. I started importing as a maven project as one suggested before. I will post questions if other things come up again. Thanks and sorry for spoiling your inbox. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh On Mon, Oct 3, 2016 at 1:21 PM, Jason Kohwrote: > Hi all, > > I am trying to embed some function (SPIN as talked in another thread) to > jena-arq so that Fuseki can use it smoothly. I was able to import the > entire project into eclipse (Neon) but cannot run Fuseki there. What I am > doing is i) editing and ii) run mvn in the command line (I cannot find > maven build in Eclipse.), iii) unzip target archive in Fuseki and then iv) > run the server using ./fuseki-server > > I would like to build and run the server as a debug mode in Eclipse so > that I don't have to go through all the above steps. > > This is probably due to my lack of knowledge on Eclipse framework, but I > would appreciate if I could learn how to do it. Either direct enlightenment > or pointers to documents will be appreciated. > > Thanks a lot. > > > > With regards, > Jason Koh > cseweb.ucsd.edu/~jbkoh >
IDE setup of Jena-Fuseki source code.
Hi all, I am trying to embed some function (SPIN as talked in another thread) to jena-arq so that Fuseki can use it smoothly. I was able to import the entire project into eclipse (Neon) but cannot run Fuseki there. What I am doing is i) editing and ii) run mvn in the command line (I cannot find maven build in Eclipse.), iii) unzip target archive in Fuseki and then iv) run the server using ./fuseki-server I would like to build and run the server as a debug mode in Eclipse so that I don't have to go through all the above steps. This is probably due to my lack of knowledge on Eclipse framework, but I would appreciate if I could learn how to do it. Either direct enlightenment or pointers to documents will be appreciated. Thanks a lot. With regards, Jason Koh cseweb.ucsd.edu/~jbkoh
Re: Backup of TDB-backed dataset
Laurent, The best way to take a backup is to be a read-transaction and write n-quads (that's what Fuseki does). In order to go in at the file level, you need to not have a running JVM. In 3.1.1, there will be a "lock down" mode to make the on-disk database consistent, if the app really must. The best for snapshoting disk files in 3.1.0 is start a write transaction, do no writes, and take disk copy. This is not a feature guaranteed in the future. Taking an RDF-level backup is better. Andy On 03/10/16 15:36, Laurent Rucquoy wrote: Hello, We have a TDB-backed dataset on a Windows server (Apache Jena 3.1.0) We want to make a .zip backup of the TDB folder from the JVM running the TDB. Is it a safe way to do this in order to avoid database corruption ? Thank you in advance for your help. Regards, Laurent
Backup of TDB-backed dataset
Hello, We have a TDB-backed dataset on a Windows server (Apache Jena 3.1.0) We want to make a .zip backup of the TDB folder from the JVM running the TDB. Is it a safe way to do this in order to avoid database corruption ? Thank you in advance for your help. Regards, Laurent
Re: Multiple Jena rules
> For instance, I have multiple rules, say, 10 rules, can I write them in one > String value. For example, > > String myrule= "[rule1.] + >"[rule2...]+ >"[rule3] + etc > > and at the end, just write > > Reasoner reasoner2 = new GenericRuleReasoner(Rule.parseRules(myrule)); Should work as long as rules are delimited properly. > > If have read somewhere that we can also write all the rules in a text file > and import it to the project, but in that case how can we run SPARQL > queries against that rules then? InfModel has to be used with the GenericRuleReasoner. SPARQL queries are then executed against the model as usual. > > Any suggestions and guidance would be highly appreciated. > -- Lorenz Bühmann AKSW group, University of Leipzig Group: http://aksw.org - semantic web research center
Multiple Jena rules
For instance, I have multiple rules, say, 10 rules, can I write them in one String value. For example, String myrule= "[rule1.] + "[rule2...]+ "[rule3] + etc and at the end, just write Reasoner reasoner2 = new GenericRuleReasoner(Rule.parseRules(myrule)); If have read somewhere that we can also write all the rules in a text file and import it to the project, but in that case how can we run SPARQL queries against that rules then? Any suggestions and guidance would be highly appreciated.
Re: Jena user conference and / or advanced training with ability to discuss applications
Generally speaking the community is not large enough to support a dedicated event. In the past ourselves and other semantics related project at Apache have worked together to produce a semantics track at an Apache conference. However this has typically only happened at European based conferences due to the bulk of such projects committer bases being based in Europe. The project does have some committers based within the US but most of those people are on the east coast I believe. Several people do/have worked for companies that offer training in semantic technologies though not necessarily specifically upon Jena itself. TopQuadrant and Epimorphics are two such example companies. Rob On 06/09/2016 01:05, "Niels Andersen"wrote: Hi Jena user group, Are there any Jena user conferences scheduled? We are also interested in attending advanced training session where we could discuss specific application needs, architectures and best practices. I have looked at https://blogs.apache.org/conferences/ , but cannot find anything specific about Jena that is recent. We would be also be interested if we can meet people in Orange County / Southern California to share experiences and discuss. Thanks in advance, Niels