Skip to content

A ruby parser using linkeddata and RDF to fetch the JPL Sweet ontology and load it into Neo4J for cool graph queries and examination.

Notifications You must be signed in to change notification settings

USCDataScience/sweet-neo4j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

A ruby parser using linkeddata and rdf to interpret the Semantic Web for Earth and Environmental Terminology (SWEET) ontology suite. Additonally this program loads SWEET into Neo4J for cool graph queries and examination.

Installation

Ensure you have the most recent version of Ruby installed. If you need to upgrade, you can run

$ \curl -sSL https://get.rvm.io | bash -s stable --ruby

Then install some Ruby Gems (you may need to be root)

$ gem install rdf linkeddata neography activesupport

Finally, ensure that you have a local version of Neo4j running.

$ brew install neo4j
$ neo4j start

Ensure that your username and password are set. The default username and password for Neo4j is 'neo4j' and 'neo4j' respectively. You can change these from the GUI the first time you use Neo4j. You can navigate to http://localhost:7474/browser/ to set it.

Configuration

Before running the program, make sure the following properties are set in parser.rb

# Set the following variables in parser.rb and let the magic happen
NEO4J_USER = "${your.username}"
NEO4J_PASSWORD = "${your.password}"
SWEET_URL = "https://raw.githubusercontent.com/ESIPFed/sweet/master/src/sweetAll.ttl"

Alt text

About

A ruby parser using linkeddata and RDF to fetch the JPL Sweet ontology and load it into Neo4J for cool graph queries and examination.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%