-
Notifications
You must be signed in to change notification settings - Fork 656
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 #1619 from afs/rdf-patch
GH-1618: RDF Patch
- Loading branch information
Showing
139 changed files
with
13,588 additions
and
56 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
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,18 @@ | ||
@echo off | ||
@rem Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
if "%JENAROOT%" == "" goto :rootNotSet | ||
set JENA_HOME=%JENAROOT% | ||
:rootNotSet | ||
|
||
if NOT "%JENA_HOME%" == "" goto :okHome | ||
echo JENA_HOME not set | ||
exit /B | ||
|
||
:okHome | ||
set JENA_CP=%JENA_HOME%\lib\*; | ||
set LOGGING=file:%JENA_HOME%/log4j2.properties | ||
|
||
@rem JVM_ARGS comes from the environment. | ||
java %JVM_ARGS% -Dlog4j.configurationFile="%LOGGING%" -cp "%JENA_CP%" rdfpatch.rdfpatch %* | ||
exit /B |
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 @@ | ||
#!/bin/sh | ||
## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
resolveLink() { | ||
local NAME=$1 | ||
|
||
if [ -L "$NAME" ]; then | ||
case "$OSTYPE" in | ||
darwin*|bsd*) | ||
# BSD style readlink behaves differently to GNU readlink | ||
# Have to manually follow links | ||
while [ -L "$NAME" ]; do | ||
NAME=$( cd $NAME && pwd -P ) ; | ||
done | ||
;; | ||
*) | ||
# Assuming standard GNU readlink with -f for | ||
# canonicalize and follow | ||
NAME=$(readlink -f "$NAME") | ||
;; | ||
esac | ||
fi | ||
|
||
echo "$NAME" | ||
} | ||
|
||
# If JENA_HOME is empty | ||
if [ -z "$JENA_HOME" ]; then | ||
SCRIPT="$0" | ||
# Catch common issue: script has been symlinked | ||
if [ -L "$SCRIPT" ]; then | ||
SCRIPT=$(resolveLink "$0") | ||
# If link is relative | ||
case "$SCRIPT" in | ||
/*) | ||
# Already absolute | ||
;; | ||
*) | ||
# Relative, make absolute | ||
SCRIPT=$( dirname "$0" )/$SCRIPT | ||
;; | ||
esac | ||
fi | ||
|
||
# Work out root from script location | ||
JENA_HOME="$( cd "$( dirname "$SCRIPT" )/.." && pwd )" | ||
export JENA_HOME | ||
fi | ||
|
||
# If JENA_HOME is a symbolic link need to resolve | ||
if [ -L "${JENA_HOME}" ]; then | ||
JENA_HOME=$(resolveLink "$JENA_HOME") | ||
# If link is relative | ||
case "$JENA_HOME" in | ||
/*) | ||
# Already absolute | ||
;; | ||
*) | ||
# Relative, make absolute | ||
JENA_HOME=$(dirname "$JENA_HOME") | ||
;; | ||
esac | ||
export JENA_HOME | ||
fi | ||
|
||
if [ -z "$JAVA" ] | ||
then | ||
if [ -z "$JAVA_HOME" ] | ||
then | ||
JAVA="$(which java)" | ||
else | ||
JAVA="$JAVA_HOME/bin/java" | ||
fi | ||
fi | ||
|
||
if [ -z "$JAVA" ] | ||
then | ||
( | ||
echo "Cannot find a Java JDK." | ||
echo "Please set either set JAVA or JAVA_HOME and put java (>=Java 11) in your PATH." | ||
) 1>&2 | ||
exit 1 | ||
fi | ||
|
||
|
||
# ---- Setup | ||
# JVM_ARGS : don't set here but it can be set in the environment. | ||
# Expand JENA_HOME but literal * | ||
JENA_CP="$JENA_HOME"'/lib/*' | ||
LOGGING="${LOGGING:--Dlog4j.configurationFile=file:$JENA_HOME/log4j2.properties}" | ||
|
||
# Platform specific fixup | ||
# On CYGWIN convert path and end with a ';' | ||
case "$(uname)" in | ||
CYGWIN*) JENA_CP="$(cygpath -wp "$JENA_CP");";; | ||
esac | ||
|
||
# Respect TMPDIR or TMP (windows?) if present | ||
# important for tdbloader spill | ||
if [ -n "$TMPDIR" ] | ||
then | ||
JVM_ARGS="$JVM_ARGS -Djava.io.tmpdir=\"$TMPDIR\"" | ||
elif [ -n "$TMP" ] | ||
then | ||
JVM_ARGS="$JVM_ARGS -Djava.io.tmpdir=\"$TMP\"" | ||
fi | ||
|
||
"$JAVA" $JVM_ARGS $LOGGING -cp "$JENA_CP" rdfpatch.rdfpatch "$@" |
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
48 changes: 48 additions & 0 deletions
48
jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/PatchTxn.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.