-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from ebremer/develop
Zephyr Enhancements and library updates
- Loading branch information
Showing
102 changed files
with
4,008 additions
and
761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<actions> | ||
<action> | ||
<actionName>run</actionName> | ||
<packagings> | ||
<packaging>jar</packaging> | ||
</packagings> | ||
<goals> | ||
<goal>process-classes</goal> | ||
<goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal> | ||
</goals> | ||
<properties> | ||
<exec.longClasspath>true</exec.longClasspath> | ||
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> | ||
<exec.executable>java</exec.executable> | ||
<exec.vmArgs>--enable-preview -Xmx50G -Xms50G --add-opens=java.base/java.nio=ALL-UNNAMED</exec.vmArgs> | ||
<exec.appArgs></exec.appArgs> | ||
<exec.mainClass>com.ebremer.halcyon.server.Main</exec.mainClass> | ||
</properties> | ||
</action> | ||
<action> | ||
<actionName>debug</actionName> | ||
<packagings> | ||
<packaging>jar</packaging> | ||
</packagings> | ||
<goals> | ||
<goal>process-classes</goal> | ||
<goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal> | ||
</goals> | ||
<properties> | ||
<exec.longClasspath>true</exec.longClasspath> | ||
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> | ||
<exec.executable>java</exec.executable> | ||
<jpda.listen>true</jpda.listen> | ||
<exec.vmArgs>--enable-preview -Xmx50G -Xms50G --add-opens=java.base/java.nio=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</exec.vmArgs> | ||
<exec.appArgs></exec.appArgs> | ||
<exec.mainClass>com.ebremer.halcyon.server.Main</exec.mainClass> | ||
</properties> | ||
</action> | ||
<action> | ||
<actionName>profile</actionName> | ||
<packagings> | ||
<packaging>jar</packaging> | ||
</packagings> | ||
<goals> | ||
<goal>process-classes</goal> | ||
<goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal> | ||
</goals> | ||
<properties> | ||
<exec.longClasspath>true</exec.longClasspath> | ||
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> | ||
<exec.executable>java</exec.executable> | ||
<exec.vmArgs>--enable-preview -Xmx50G -Xms50G --add-opens=java.base/java.nio=ALL-UNNAMED</exec.vmArgs> | ||
<exec.appArgs></exec.appArgs> | ||
<exec.mainClass>com.ebremer.halcyon.server.Main</exec.mainClass> | ||
</properties> | ||
</action> | ||
<action> | ||
<actionName>build-with-dependencies</actionName> | ||
<reactor>also-make</reactor> | ||
<packagings> | ||
<packaging>*</packaging> | ||
</packagings> | ||
<goals> | ||
<goal>install</goal> | ||
</goals> | ||
<properties> | ||
<exec.longClasspath>true</exec.longClasspath> | ||
</properties> | ||
</action> | ||
<action> | ||
<actionName>run.single.main</actionName> | ||
<packagings> | ||
<packaging>*</packaging> | ||
</packagings> | ||
<goals> | ||
<goal>process-classes</goal> | ||
<goal>org.codehaus.mojo:exec-maven-plugin:3.0.0:exec</goal> | ||
</goals> | ||
<properties> | ||
<exec.longClasspath>true</exec.longClasspath> | ||
<exec.vmArgs></exec.vmArgs> | ||
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> | ||
<exec.executable>java</exec.executable> | ||
<exec.mainClass>${packageClassName}</exec.mainClass> | ||
<exec.classpathScope>${classPathScope}</exec.classpathScope> | ||
</properties> | ||
</action> | ||
<action> | ||
<actionName>debug.single.main</actionName> | ||
<packagings> | ||
<packaging>*</packaging> | ||
</packagings> | ||
<goals> | ||
<goal>process-test-classes</goal> | ||
<goal>org.codehaus.mojo:exec-maven-plugin:3.0.0:exec</goal> | ||
</goals> | ||
<properties> | ||
<exec.longClasspath>true</exec.longClasspath> | ||
<exec.vmArgs>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</exec.vmArgs> | ||
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> | ||
<exec.executable>java</exec.executable> | ||
<exec.mainClass>${packageClassName}</exec.mainClass> | ||
<exec.classpathScope>${classPathScope}</exec.classpathScope> | ||
<jpda.listen>true</jpda.listen> | ||
</properties> | ||
</action> | ||
</actions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.ebremer.halcyon.data; | ||
|
||
import static com.ebremer.halcyon.data.DataCore.Level.CLOSED; | ||
import com.ebremer.ns.HAL; | ||
import org.apache.jena.graph.Graph; | ||
import org.apache.jena.permissions.graph.SecuredGraph; | ||
import org.apache.jena.query.Dataset; | ||
import org.apache.jena.query.DatasetFactory; | ||
import org.apache.jena.query.QueryExecution; | ||
import org.apache.jena.query.QueryExecutionFactory; | ||
import org.apache.jena.query.ReadWrite; | ||
import org.apache.jena.query.ResultSetFormatter; | ||
import org.apache.jena.rdf.model.Model; | ||
import org.apache.jena.tdb2.TDB2Factory; | ||
|
||
|
||
/** | ||
* | ||
* @author erich | ||
*/ | ||
public class Test { | ||
|
||
/** | ||
* @param args the command line arguments | ||
*/ | ||
public static void main(String args[]) { | ||
Dataset x = TDB2Factory.connectDataset("/projects/Halcyon/Halcyon/tdb2"); | ||
Dataset ds = DatasetFactory.wrap(new SecuredDatasetGraph(x.asDatasetGraph(), new WACSecurityEvaluator(CLOSED))); | ||
QueryExecution qe = QueryExecutionFactory.create( | ||
""" | ||
select * | ||
where { graph <https://halcyon.is/ns/CollectionsAndResources> { | ||
?s ?p ?o | ||
} | ||
} | ||
""", ds); | ||
ds.begin(ReadWrite.READ); | ||
ResultSetFormatter.out(System.out,qe.execSelect()); | ||
ds.end(); | ||
|
||
} | ||
} |
Oops, something went wrong.