Skip to content

Proof of concept for importing TEI xml files into Neo4j.

Notifications You must be signed in to change notification settings

kuczera/neo4j-tei-importer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neo4j-tei-importer

Travis CI Status

neo4j-tei-importer imports data from XML files using the TEI schema to a Neo4j database.

Installation

This project uses gradle as build system. Since the gradle wrapper in included, there is no need to download anything beforehand.

To build the project just type:

./gradlew shadowJar

Copy (or symlink) the resulting file ./build/libs/neo4j-tei-importer-0.1-SNAPSHOT-all.jar to Neo4j’s plugins folder.

Change configuration in $NEO4J/conf/neo4j-server.properties:

org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.extension.tei=/tei

After a restart using $NEO4J_HOME/bin/neo4j restart the extension is ready to use.

Usage

upload local XML document via HTTP PUT

Using REST a XML TEI file can be imported by simple sending an HTTP PUT to REST endpoint http://host:7474/tei/import. E.g. via cURL:

curl [-u neo4j:<mypasswd>] -T src/test/resources/1667-09-23.xml http://localhost:7474/tei/import

submit XML document via URL

Additionally it’s possible to omit the payload in the PUT request and specify the URL location of the document via url request parameter. Be aware to supply the url in urlencoded variant:

curl [-u neo4j:<mypasswd>] -X PUT http://localhost:7474/tei/import?url=http%3A%2F%2Fmyhost%2Fabc.xml

About

Proof of concept for importing TEI xml files into Neo4j.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 96.6%
  • Java 3.4%