-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
09b4a41
commit 320d36f
Showing
4 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
core/repository/api/src/main/resources/org/eclipse/rdf4j/repository/config/lmdb.ttl
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,20 @@ | ||
# | ||
# Configuration template for an LmdbStore | ||
# | ||
@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 ns: <http://www.openrdf.org/config/sail/native#>. | ||
@prefix sb: <http://www.openrdf.org/config/sail/base#>. | ||
|
||
[] a rep:Repository ; | ||
rep:repositoryID "{%Repository ID|lmdb%}" ; | ||
rdfs:label "{%Repository title|LMDB Store%}" ; | ||
rep:repositoryImpl [ | ||
rep:repositoryType "openrdf:SailRepository" ; | ||
sr:sailImpl [ | ||
sail:sailType "rdf4j:LmdbStore" ; | ||
sb:evaluationStrategyFactory "{%EvaluationStrategyFactory|org.eclipse.rdf4j.query.algebra.evaluation.impl.StrictEvaluationStrategyFactory%}" | ||
] | ||
]. |
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
86 changes: 86 additions & 0 deletions
86
tools/workbench/src/main/webapp/transformations/create-lmdb.xsl
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,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:sparql="http://www.w3.org/2005/sparql-results#" xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<xsl:include href="../locale/messages.xsl" /> | ||
|
||
<xsl:variable name="title"> | ||
<xsl:value-of select="$repository-create.title" /> | ||
</xsl:variable> | ||
|
||
<xsl:include href="template.xsl" /> | ||
|
||
<xsl:template match="sparql:sparql"> | ||
<form action="create" method="post"> | ||
<table class="dataentry"> | ||
<tbody> | ||
<tr> | ||
<th> | ||
<xsl:value-of select="$repository-type.label" /> | ||
</th> | ||
<td> | ||
<select id="type" name="type"> | ||
<option value="lmdb"> | ||
LMDB Store | ||
</option> | ||
</select> | ||
</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<th> | ||
<xsl:value-of select="$repository-id.label" /> | ||
</th> | ||
<td> | ||
<input type="text" id="id" name="Repository ID" size="16" | ||
value="lmdb" /> | ||
</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<th> | ||
<xsl:value-of select="$repository-title.label" /> | ||
</th> | ||
<td> | ||
<input type="text" id="title" name="Repository title" size="48" | ||
value="LMDB store" /> | ||
</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<th> | ||
<xsl:value-of select="$repository-evaluation-mode.label" /> | ||
</th> | ||
<td> | ||
<select id="evalStratFactory" name="EvaluationStrategyFactory"> | ||
<option selected="selected" | ||
value="org.eclipse.rdf4j.query.algebra.evaluation.impl.StrictEvaluationStrategyFactory"> | ||
Strict | ||
</option> | ||
<option | ||
value="org.eclipse.rdf4j.query.algebra.evaluation.impl.ExtendedEvaluationStrategyFactory"> | ||
Extended | ||
</option> | ||
</select> | ||
</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td> | ||
<input type="button" value="{$cancel.label}" style="float:right" | ||
data-href="repositories" | ||
onclick="document.location.href=this.getAttribute('data-href')" /> | ||
<input id="create" type="button" value="{$create.label}" | ||
onclick="checkOverwrite()" /> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</form> | ||
<script src="../../scripts/create.js" type="text/javascript"> | ||
</script> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
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