Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the pom and synced with blazegraph branch #4

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e4ff5ec
Updates for maven central deployment.
beebs-systap Jan 20, 2016
7e81a03
Updated for javadoc publication and README with javadoc link.
beebs-systap Jan 21, 2016
9a270c0
Updates for 2.0.0 Blazegraph release and release process.
beebs-systap Jan 26, 2016
2d9eb55
Update for minor script name correction.
beebs-systap Jan 26, 2016
c7b3f3a
Updates for build tests
beebs-systap Jan 26, 2016
4a1e41c
[maven-release-plugin] prepare release BlazegraphBasedTPFServer-0.1.0
beebs-systap Jan 26, 2016
9b8dad8
Updates for maven release plugin.
beebs-systap Jan 26, 2016
41f0af6
[maven-release-plugin] prepare release BlazegraphBasedTPFServer-0.1.0
beebs-systap Jan 26, 2016
11d24e1
[maven-release-plugin] prepare for next development iteration
beebs-systap Jan 26, 2016
7417fd7
build updates.
beebs-systap Jan 26, 2016
e495b13
[maven-release-plugin] prepare release BlazegraphBasedTPFServer-0.1.0
beebs-systap Jan 26, 2016
ec9ae0f
Pom update
beebs-systap Jan 26, 2016
775ed68
[maven-release-plugin] prepare release BlazegraphBasedTPFServer-0.1.0
beebs-systap Jan 26, 2016
5a843fc
Updates for doc publication.
beebs-systap Jan 26, 2016
ff93848
Update for the release process
beebs-systap Jan 26, 2016
b938331
Update for maven central reference.
beebs-systap Jan 26, 2016
7d834e1
Minor formatting, clean-up.
beebs-systap Jan 26, 2016
9381532
fixed pom to compile correct jar which includes all required dependen…
laurensdv Apr 13, 2016
6d7b239
Allow for DBpedia to be loaded as .nt files (ignore datatype validation)
laurensdv Apr 13, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/bin

#Ignore Eclipse configuration
.classpath
.project
.settings

#Ignore maven target dir
target/
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Blazegraph-Based TPF Server
The Blazegraph-Based TPF Server is a [Linked Data Fragment (LDF)](http://linkeddatafragments.org/) server that provides a [Triple Pattern Fragment (TPF)](http://linkeddatafragments.org/in-depth/#tpf) interface using the [Blazegraph](https://www.blazegraph.com/) graph database as backend.

## Compiling
The Blazegraph-Based TPF Server is an extension of the generic, Java-based LDF server framework [Server.Java](https://github.com/LinkedDataFragments/Server.Java). Since this framework is not yet available as an online Maven artifact, it has to be compiled and deployed locally before the Blazegraph-Based TPF Server can be compiled. To this end, obtain the latest source code of [Server.Java](https://github.com/LinkedDataFragments/Server.Java) by cloning its github repository as follows:

```
git clone https://github.com/LinkedDataFragments/Server.Java.git
```

Next, compile [Server.Java](https://github.com/LinkedDataFragments/Server.Java) and deploy it locally:
##Maven Dependency
The Blazegraph-based TPF Server is available on Maven Central.

```
cd Server.Java
mvn install
cd ..
<dependency>
<groupId>com.blazegraph</groupId>
<artifactId>BlazegraphBasedTPFServer</artifactId>
<version>0.1.0</version>
</dependency>
```

Now you are ready to obtain the source code of the Blazegraph-Based TPF Server and compile it:
##Javadocs
[Javadocs](https://blazegraph.github.io/BlazegraphBasedTPFServer/apidocs/)

##Extending the TPF Server

```
git clone https://github.com/hartig/BlazegraphBasedTPFServer.git
git clone https://github.com/blazegraph/BlazegraphBasedTPFServer.git
cd BlazegraphBasedTPFServer
mvn package
```
Expand All @@ -39,4 +39,4 @@ java -server -Xmx4g -jar target/BlazegraphBasedTPFServer.jar config.json
You may have to increase the `-Xmx` parameter if you use an in-memory dataset.

## License
The Blazegraph-Based TPF Server is written by [Olaf Hartig](http://olafhartig.de/) and released under the [Apache License, Version 2.0](http://www.apache.org/licenses/).
The Blazegraph-Based TPF Server is written by [Olaf Hartig](http://olafhartig.de/) and released under the [Apache License, Version 2.0](http://www.apache.org/licenses/).
30 changes: 30 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Blazegraph-Based TPF Server
The Blazegraph-Based TPF Server is a [Linked Data Fragment (LDF)](http://linkeddatafragments.org/) server that provides a [Triple Pattern Fragment (TPF)](http://linkeddatafragments.org/in-depth/#tpf) interface using the [Blazegraph](https://www.blazegraph.com/) graph database as backend.


##Maven Dependency
The Blazegraph-based TPF Server is available on Maven Central.

```
<dependency>
<groupId>com.blazegraph</groupId>
<artifactId>BlazegraphBasedTPFServer</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
```

##Javadocs
[Javadocs](https://blazegraph.github.io/BlazegraphBasedTPFServer/apidocs/)

##Building a release

* Make sure the pom is at the latest version-SNAPSHOT, i.e. 0.1.0-SNAPSHOT
* Setup your environment for Sonatype [See here](http://central.sonatype.org/pages/apache-maven.html#other-prerequisites).
* Make sure to set the blazegraph version to the latest release in Maven Central.
* Add and commit all changes.
* `mvn -Pmaven-central release:clean release:prepare` [See here](http://central.sonatype.org/pages/apache-maven.html#performing-a-release-deployment-with-the-maven-release-plugin). You will be prompted to enter the next version number, which should be in the form X.Y.X, i.e. 0.1.1. It's OK to accept the defaults.
* `mvn -Pmaven-central release:perform` [See here](http://central.sonatype.org/pages/apache-maven.html#performing-a-release-deployment-with-the-maven-release-plugin).
* Checkout the release tag, `git checkout BlazegraphBasedTPFServer-0.1.0`, and publish the javadocs: `./bin/publishDocs.sh`.
* Reverse merge into master and commit the changes: `git checkout master`, `git merge BlazegraphBasedTPFServer-0.1.0`; `git push origin master`
* Got to [Github](https://github.com/blazegraph/BlazegraphBasedTPFServer/releases) and update the release tag.

34 changes: 34 additions & 0 deletions bin/publishDocs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
#Script to publish javadoc to https://blazegraph.github.com/
BASE_DIR=`dirname $0`
PARENT_POM="${BASE_DIR}/../pom.xml"
DEST_DIR=BlazegraphBasedTPFServer/apidocs/
#You must have cloned https://github.com/blazegraph/blazegraph.github.io into a directory at the same level as where tinkerpop3 is checked out
GITHUB_PAGES="${BASE_DIR}/../../blazegraph.github.io"

if [ ! -d "${GITHUB_PAGES}" ] ; then

echo "${GITHUB_PAGES} does not exist."
echo "You must have cloned https://github.com/blazegraph/blazegraph.github.io into a directory at the same level as where bigdata is checked out."
exit 1

fi

mvn -f "${PARENT_POM}" javadoc:javadoc

echo "Javadoc is located in ${BASE_DIR}/../target/apidocs/"

pushd `pwd`
mkdir -p "${GITHUB_PAGES}/${DEST_DIR}"
echo cp -rf "${BASE_DIR}"/../target/apidocs/* "${GITHUB_PAGES}/${DEST_DIR}"
cp -rf "${BASE_DIR}"/../target/apidocs/* "${GITHUB_PAGES}/${DEST_DIR}"
cd $"${GITHUB_PAGES}"
git pull
git add --all
git commit -m "Update for $DEST_DIR javadocs"
git push origin master

popd



Loading