Giter Site home page Giter Site logo

alexanderpico / wp2lod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrawaag/wp2lod

0.0 1.0 0.0 36.78 MB

Java source for conversion of WikiPathways GPML to triples

License: Apache License 2.0

Java 92.45% Shell 1.38% CSS 3.87% JavaScript 2.30%

wp2lod's Introduction

wp2lod

This repo is a collection of all the files needed to run the wp2lod pipeline. Follow the steps below to clone and run this code.

##Command line git clone <paste wp2lod repo url>

##Set config properties

  • Rename config.properties.default to config.properties
  • Edit the config.properties with relevant file locations

##In Eclipse

  • Create a new project and point to cloned code
  • Add lib jars to Build Path
  • Specify (create?) src folder
  • Check BridgeDb file path in WP2RDFConversion.java:91 (should point to derby files on local or server)
  • RunConfiguration: main=Pathway2RDFv2
  • File>Export>Runnable JAR file (to tmp/WP2Rdf.jar; expect warnings)

##Command line sh scripts/masterScript.sh (references runnable jars)

##Ragamuffin

  • output files from pipeline:
  • wpContent_โ€ฆ_ttl
  • void.ttl
  • These files get copied to: /home/virtuoso/andra/wp/db
  • Other ontologies files go into this same dir, e.g., *.owl and *.obo files

#Check new files in test instance

cd /home/virtuoso/andra/

sudo cp -R wp wpcache ##takes a while!

cd wpcache/db/

vi wp.ini

  • change [paramerter] ServerPort to 5556 ##any free port numbers will do: netstat -aunt
  • change [HTTPServer] ServerPort to 5557

virtuoso-t +conf ##launch test instance

  • Open virtuoso command line and load new ttl and owl files (see below)

  • Run benchmark queries and compare to live sparql endpoint

    • Need to tunnel to reach alt HTTPServer port (e.g., 5557):
    • Open new terminal and run this from localhost:
    • ssh -T -N -L 5557:localhost:1234 <username>@ragamuffin.bigcat.unimaas.nl
    • In browser, navigate to localhost:1234/sparql
    • Close tunnel by:
    • ps aux | grep localhost (note )
    • sudo kill -9 <pid>
  • Should include Raptor validation step

  • If ready then shutdown:

SQL> DELETE FROM DB.DBA.RDF_QUAD;

SQL> shutdown();

cd ..

sudo rm -rf wpcache/*

  • Then go to live dir: cd ../../wp/db and load new files into

  • Open command line for virtuoso: isql-vt -S 1973 #port specified in wp.ini file

  • Load new ttl file:

SQL> DELETE FROM DB.DBA.RDF_QUAD; #warning: this deletes everything! This is useful during dev periods and for major db reconstruction; should NOT be used during normal production updates.

SQL> DB.DBA.TTLP_MT (file_to_string_output ('wpContent_v0.0.69675_20130710.ttl'), '', 'http:/opsv13.wikipathways.org');

SQL> DB.DBA.RDF_LOAD_RDFXML (...); for all .owl files ## .obo files should be converted to .owl files prior to loading with this same syntax (http://www.bioontology.org/wiki/index.php/OboInOwl:Main_Page).

  • need to look into batch loading script

  • Now, the sparql is live and ready for queries.

  • Note: sparql.wikipathways.org is proxy to 1974 port via apache.

wp2lod's People

Contributors

egonw avatar alexanderpico avatar ariutta avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.