w3c/omn

Name: omn

Owner: World Wide Web Consortium

Description: W3C Federated Infrastructures Community Group

Created: 2014-04-07 09:41:23.0

Updated: 2017-12-17 01:00:11.0

Pushed: 2018-01-10 12:43:16.0

Homepage:

Size: 16219

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Federated Infrastructures Ontology

Build Status Coverage Status

Abstract

This repository contains the work conducted in the W3C Federated Infrastructures Community Group. It includes a formal information model for federated infrastructures (omn) and a Java library (omnlib) to translate between our Open-Multinet Ontology, GENI v3 RSpecs (plus extensions), OASIS TOSCA, and the IETF NFV models.

Further information
Java omnlib

The Java library helps developers to work with Open-Multinet related ontologies and includes a translator to convert between RDF, GENI RSpec XMLs, and TOSCA XML.

Using it
CLI
mvn compile
cd omnlib
./src/main/bin/omnlib -o ttl -i ./src/test/resources/geni/request/request_bound.xml
Web Service

Assuming you have a running WildFly instance

 cd omnweb
 mvn clean install
 mvn wildfly:deploy

Then convert the file

curl --data-urlencode content@../omnlib/src/test/resources/geni/request/request_bound.xml http://127.0.0.1:8080/omnweb/convert/request/ttl
curl --data-urlencode content@../omnlib/src/test/resources/geni/request/request_bound.xml http://demo.fiteagle.org:8080/omnweb/convert/request/ttl
Developing it
Using it in your own project

Add this repository to your pom.xml file:

<project>
  ...
  <repositories>
    <repository>
      <id>sonatype</id>
      <url>https://oss.sonatype.org/content/groups/public/</url>
    </repository>
  </repositories>
  ...
  <dependencies>
    <dependency>
      <groupId>info.open-multinet</groupId>
      <artifactId>omnlib</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    </dependency>
  </dependencies>
  ...
</project>
Enhancing the library
  1. Checkout the code
  2. Run “mvn clean compile” to auto generate binding files
  3. Open with IDE (e.g. Eclipse or IntelliJ)
Directory Layout
Suggested Tools
How To (rather old approach)
Run example Queries
./bin/runQuery.sh
Example (pre defined): Get the published nodes
./bin/runQuery.sh example2
Example (arbitrary): Get the status of the nodes for FLS
./bin/runQuery.sh advertisement-fp getnodestatus

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.