Ubuntu Commands

  •     How to copy ontology on server
sudo scp /home/ahmad/ontologies-Health-Census-LOD/healthCensus2LOD.owl server@sadi2:/var/lib/tomcat6/webapps/ROOT/ontologies/
  •     To copy into local machine
scp myusername@university_computer:/home/myusername/file.odt /local/destination/path/
  •     Start and stop apache 2 on Ubuntu
sudo service apache2 restart|stop|start
    • Building a war file, Go to the particular folder and type the following
jar cvf  hc2lod.war *

  • Split large RDF dump into chunck
  • If your input data file is in N-Triples format, contains no blank nodes, and you’re lucky enough to be on Linux, you can create your own split simply with the split shell command:

    split -l 100000 /path/to/large/rdf/file.nt

    The above command will split your input data file into several smaller files, of 100,000 lines each. Vary chunk size to taste (between 100,000 and 500,000 seems to generally give best results, but a lot, again, depends on the hardware).


    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s