forked from usc-isi-i2/szeke
metaphor-adp/Web-Karma-Public
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Requirements: Java 1.6, Maven 3.0 and above To run the jetty server, execute the following command from webkarma top directory: mvn jetty:run Point your browser to http://localhost:8080/web-karma.html NOTE: To start it on a port other than 8080 (e.g. Port number 9999): mvn -Djetty.port=9999 jetty:run To start in logging mode (where all the logs are stored in the log folder), use the following command to start the server: mvn -Dslf4j=false -Dlog4j.configuration=file:./config/log4j.properties jetty:run *** To set up password protection *** - in /config/jettyrealm.properties change user/password (if you wish) - in /src/main/webapp/WEB-INF/web.xml uncomment security section at the end of the file - in pom.xml uncomment security section (search for loginServices) *** Offline RDF Generation from a database *** 1. Model your source and publish it's model. 2. From the command line, go to the top level Karma directory and run the following command: mvn exec:java -Dexec.mainClass="edu.isi.karma.rdf.OfflineDbRdfGenerator" -Dexec.args="[PATH TO YOUR MODEL FILE] [OUTPUT RDF FILE NAME/PATH] [DATABASE PASSWORD]" e.g. mvn exec:java -Dexec.mainClass="edu.isi.karma.rdf.OfflineDbRdfGenerator" -Dexec.args="model.n3 result.n3 secretPassword" Above command will use the ObjCurLocView.n3 model file to pubish a RDF file named result.n3 *** Offline RDF Generation from a CSV file (Feature courtesy of https://github.com/cgueret) *** 1. Model your source and publish it's model. 2. From the command line, go to the top level Karma directory and run the following command: mvn exec:java -Dexec.mainClass="edu.isi.karma.rdf.OfflineCSVGenerator" -Dexec.args="[PATH TO YOUR MODEL FILE] [CSV DATA FILE] [OUTPUT RDF FILE NAME/PATH]" NOTE: Currently only tab-delimited kind of CSV files are supported. e.g. mvn exec:java -Dexec.mainClass="edu.isi.karma.rdf.OfflineCSVGenerator" -Dexec.args="model.n3 data.csv result.n3" Above command will use the model.n3 model file to pubish a RDF file named result.n3 NOTE: In Maven Jetty plugin based Karma deployment, the published models are located at src/main/webapp/repository/sources/ inside the Karma directory.er/password (if you wish) - in /src/main/webapp/WEB-INF/web.xml uncomment security section at the end of the file - in pom.xml uncomment security section (search for loginServices) *** Offline RDF Generation from a database *** 1. Model your source and publish it's model. 2. From the command line, go to the top level Karma directory and run the following command: mvn exec:java -Dexec.mainClass="edu.isi.karma.rdf.OfflineDbRdfGenerator" -Dexec.args="[PATH TO YOUR MODEL FILE] [OUTPUT RDF FILE NAME/PATH] [DATABASE PASSWORD]" e.g. mvn exec:java -Dexec.mainClass="edu.isi.karma.rdf.OfflineDbRdfGenerator" -Dexec.args="ObjCurLocView.n3 result.n3 secretPassword" Above command will use the ObjCurLocView.n3 model file to pubish a RDF file named result.n3 NOTE: In Maven Jetty plugin based Karma deployment, the published models are located at src/main/webapp/repository/sources/ inside the Karma directory.
About
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published