Strabon

changeset 881:8b8c2efcc293 temporals

Strabon endpoint (script) now supports storing quads.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Wed Feb 20 18:18:57 2013 +0200 (2013-02-20)
parents 79951cf9c1e1
children 6cd4c06a3557
files scripts/endpoint
line diff
     1.1 --- a/scripts/endpoint	Tue Feb 19 20:09:27 2013 +0200
     1.2 +++ b/scripts/endpoint	Wed Feb 20 18:18:57 2013 +0200
     1.3 @@ -73,7 +73,7 @@
     1.4  	echo "Usage: ${CMD} store ENDPOINT FORMAT -t TRIPLES|-u TRIPLES_URL"
     1.5  	echo
     1.6  	echo "	ENDPOINT    : the URL of Strabon Endpoint (e.g., http://localhost:8080/StrabonEndpoint/)"
     1.7 -	echo "	FORMAT	    : the RDF format of the input (one of RDF/XML, N-Triples, Turtle, N3, TriX, TriG, or BinaryRDF)"
     1.8 +	echo "	FORMAT	    : the RDF format of the input (one of RDF/XML, N-Triples, Turtle, N3, TriX, TriG, BinaryRDF or N-Quads)"
     1.9  	echo "	TRIPLES	    : the RDF triples to store"
    1.10  	echo "	TRIPLES_URL : the URL containing the RDF triples to store"
    1.11  }
    1.12 @@ -293,9 +293,12 @@
    1.13  			BinaryRDF)
    1.14  				MIME_TYPE="application/x-binary-rdf"
    1.15  				;;
    1.16 +			N-Quads)
    1.17 +				MIME_TYPE="text/x-nquads"
    1.18 +				;;
    1.19  			*)
    1.20  				echo "${CMD}: unknown format \"${FORMAT}\"."
    1.21 -				echo "${CMD}: possible values are \`N-Triples' (default), \`RDM/XML', \`N3', \`TURTLE', \`TRIG', \`TRIX', and \`BinaryRDF'"
    1.22 +				echo "${CMD}: possible values are \`N-Triples' (default), \`RDM/XML', \`N3', \`TURTLE', \`TRIG', \`TRIX', \`BinaryRDF' and \`N-Quads'"
    1.23  				exit 2
    1.24  				;;
    1.25  		esac