org.overlord.sramp.server.atom.services
Class OntologyResource

java.lang.Object
  extended by org.overlord.sramp.server.atom.services.AbstractResource
      extended by org.overlord.sramp.server.atom.services.OntologyResource

public class OntologyResource
extends AbstractResource

The JAX-RS resource that handles ontology specific tasks, including:

Author:
eric.wittmann@redhat.com

Constructor Summary
OntologyResource()
          Constructor.
 
Method Summary
 org.jboss.resteasy.plugins.providers.atom.Entry create(RDF rdf)
          S-RAMP atom POST to add an ontology to the repository.
 void delete(String uuid)
          Called to delete a single s-ramp ontology.
 org.jboss.resteasy.plugins.providers.atom.Entry get(String uuid)
          Called to get a single ontology by its UUID.
 org.jboss.resteasy.plugins.providers.atom.Feed list()
          Gets a feed of ontologies.
 void update(String uuid, org.jboss.resteasy.plugins.providers.atom.Entry entry)
          Called to update a single ontology by providing a new OWL RDF document.
 
Methods inherited from class org.overlord.sramp.server.atom.services.AbstractResource
logError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyResource

public OntologyResource()
Constructor.

Method Detail

create

public org.jboss.resteasy.plugins.providers.atom.Entry create(RDF rdf)
                                                       throws SrampAtomException
S-RAMP atom POST to add an ontology to the repository.

Parameters:
fileName -
model -
type -
content -
Throws:
SrampAtomException

update

public void update(String uuid,
                   org.jboss.resteasy.plugins.providers.atom.Entry entry)
            throws SrampAtomException
Called to update a single ontology by providing a new OWL RDF document.

Parameters:
uuid -
rdf -
Throws:
SrampAtomException

get

public org.jboss.resteasy.plugins.providers.atom.Entry get(String uuid)
                                                    throws SrampAtomException
Called to get a single ontology by its UUID. This returns an Atom Entry document wrapping the OWL RDF.

Parameters:
model -
type -
uuid -
Throws:
SrampAtomException

delete

public void delete(String uuid)
            throws SrampAtomException
Called to delete a single s-ramp ontology.

Parameters:
model -
type -
uuid -
Throws:
SrampAtomException

list

public org.jboss.resteasy.plugins.providers.atom.Feed list()
                                                    throws SrampAtomException
Gets a feed of ontologies.

Parameters:
uri -
Throws:
Exception
SrampAtomException


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.