You are on page 1of 1

$ curl -s -X PUT --data-binary '@test' -H "Content-type: text/turtle" --digest

--user "admin:admin" "http://localhost:8000/v1/graphs?


graph=http://www.netlab.cs.unipi.gr/vasilis"

$ curl -s -X GET --digest --user "admin:admin" "http://localhost:8000/v1/graphs"

$ curl -s -X GET --digest --user "admin:admin" -i -H "Accept: text/turtle"


"http://localhost:8000/v1/graphs?graph=http://www.netlab.cs.unipi.gr/vasilis"

curl -s -X PUT --data-binary '@onto_geom_eng' -H "Content-type: text/turtle"


--digest --user "admin:admin" "http://localhost:8000/v1/graphs?
graph=http://www.netlab.cs.unipi.gr/vasilis"

Installing mlcp
After downloading mlcp, follow these instructions to install mlcp.

Download mlcp from http://developer.marklogic.com/products/mlcp.


Unpack the mlcp distribution to a location of your choice.
This creates a directory named mlcp-version, where version is the mlcp version.
For example, assuming /space/marklogic contains zip file for mlcp version 9.0.4,
then the following commands install mclp under /space/marklogic/mlcp-9.0.4/:

AT GIT BASH, I RUN THE FOLLOWING COMMANDS:


$ cd C:/space/marklogic
$ unzip mlcp-9.0.4-bin.zip
$ export PATH=${PATH}:/space/marklogic/mlcp-9.0.4/bin
$ export PATH=${PATH}:$JAVA_HOME/bin

FOR Importing Triples with mlcp,


AT WINDOWS COMMAND PROMT (CMD), I RUN THE FOLLOWING COMMANDS:
$ cd C:/space/marklogic/mlcp-9.0.4/bin

mlcp.bat import -host localhost -port 50000 -username admin -password admin
-input_file_path C:\space\onto_geom_en.ttl -mode local -input_file_type RDF
-output_uri_prefix /people/

Verifying the Import


To verify that the RDF triples are successfully loaded into the triples database,
do the following.

Navigate to the REST Server with a Web browser:


http://netlab208-vaio:8000/v1/graphs/things

You might also like