org.universAAL.context.prof.serv
Class SCalleeProvidedService

Package class diagram package SCalleeProvidedService
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.owl.ManagedIndividual
              extended by org.universAAL.middleware.service.owl.Service
                  extended by org.universAAL.ontology.profile.service.ProfilingService
                      extended by org.universAAL.context.prof.serv.SCalleeProvidedService

public class SCalleeProvidedService
extends ProfilingService

The class where all service profiles are built.

Author:
alfiva

Field Summary
protected static String IN_ADD_PRF_TO_USR_WHAT
           
protected static String IN_ADD_PRF_TO_USR_WHERE
           
protected static String IN_ADD_SUB_TO_PRF_WHAT
           
protected static String IN_ADD_SUB_TO_PRF_WHERE
           
protected static String IN_ADD_SUB_TO_USR_WHAT
           
protected static String IN_ADD_SUB_TO_USR_WHERE
           
static String INP_ADD_X
           
static String INP_CHN_X
           
protected static String INP_GET_PRF_OF_USR
           
protected static String INP_GET_SUB_OF_USR
           
protected static String INP_GET_SUBS_OF_PRF
           
protected static String INP_GET_SUBS_OF_USR
           
static String INP_GET_X
           
static String INP_REM_X
           
static String MY_URI
          Ontological URI of the class (because it extends and ontology class> ProfilingService)
static String NAMESPACE
          Default namespace root.
protected static String OUT_GET_PRF_OF_USR
           
protected static String OUT_GET_SUB_OF_USR
           
protected static String OUT_GET_SUBS_OF_PRF
           
protected static String OUT_GET_SUBS_OF_USR
           
protected static String OUT_GET_USRS
           
static String OUT_GET_X
           
protected static ServiceProfile[] profiles
          Where the service profiles are stored.
protected static String SRV_ADD_PRF_TO_USR
           
protected static String SRV_ADD_SUB_TO_PRF
           
protected static String SRV_ADD_SUB_TO_USR
           
static String SRV_ADD_X
           
static String SRV_CHN_X
           
protected static String SRV_GET_PRF_OF_USR
           
protected static String SRV_GET_SUB_OF_USR
           
protected static String SRV_GET_SUBS_OF_PRF
           
protected static String SRV_GET_SUBS_OF_USR
           
protected static String SRV_GET_USRS
           
static String SRV_GET_X
           
static String SRV_REM_X
           
 
Fields inherited from class org.universAAL.ontology.profile.service.ProfilingService
PROP_CONTROLS
 
Fields inherited from class org.universAAL.middleware.service.owl.Service
instanceLevelRestrictions, myProfile, numberOfValueRestrictions, OWLS_NAMESPACE_PREFIX, OWLS_SERVICE_NAMESPACE, PROP_INSTANCE_LEVEL_RESTRICTIONS, PROP_NUMBER_OF_VALUE_RESTRICTIONS, PROP_OWLS_PRESENTED_BY, PROP_OWLS_PRESENTS
 
Fields inherited from class org.universAAL.middleware.owl.ManagedIndividual
OWL_NAMESPACE, TYPE_OWL_INDIVIDUAL, TYPE_OWL_THING
 
Fields inherited from class org.universAAL.middleware.rdf.Resource
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri
 
Constructor Summary
SCalleeProvidedService(String uri)
          Default constructor.
 
Method Summary
 String getClassURI()
          Get the class URI for this ManagedIndividual.
static ServiceProfile[] getServiceProfiles(String namespace, String ontologyURI, String[] path, String editedURI)
          Gives you the 4 typical service profiles of an editor service: Get, Add, Change and Remove.
 
Methods inherited from class org.universAAL.ontology.profile.service.ProfilingService
getPropSerializationType, isWellFormed
 
Methods inherited from class org.universAAL.middleware.service.owl.Service
addFilteringInput, addFilteringType, addInputWithAddEffect, addInputWithChangeEffect, addInputWithRemoveEffect, addInstanceLevelRestriction, addOutput, addRestriction, createInput, getInstanceLevelFixedValueOnProp, getInstanceLevelRestrictionOnProp, getNumberOfValueRestrictions, getProfile, getRestrictedPropsOnInstanceLevel, getRestrictionOnPropPath, setProperty
 
Methods inherited from class org.universAAL.middleware.owl.ManagedIndividual
checkCompatibility, checkMembership, copy, deepCopy, getClassRestrictionsOnProperty, getInstance, getNonAbstractSuperClasses, getNonabstractSuperClasses, getOntClassInfo, getTypeURI, isRegisteredClassURI, setPropertyPathFromOffset, toManagedIndividual
 
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
 
Methods inherited from class org.universAAL.middleware.rdf.Resource
addMultiLangProp, asList, asList, asRDFList, changeProperty, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
Default namespace root. Must be the same as in SCallee.

See Also:
Constant Field Values

MY_URI

public static final String MY_URI
Ontological URI of the class (because it extends and ontology class> ProfilingService)

See Also:
Constant Field Values

SRV_GET_USRS

protected static final String SRV_GET_USRS
See Also:
Constant Field Values

OUT_GET_USRS

protected static final String OUT_GET_USRS
See Also:
Constant Field Values

SRV_GET_SUBS_OF_USR

protected static final String SRV_GET_SUBS_OF_USR
See Also:
Constant Field Values

INP_GET_SUBS_OF_USR

protected static final String INP_GET_SUBS_OF_USR
See Also:
Constant Field Values

OUT_GET_SUBS_OF_USR

protected static final String OUT_GET_SUBS_OF_USR
See Also:
Constant Field Values

SRV_GET_PRF_OF_USR

protected static final String SRV_GET_PRF_OF_USR
See Also:
Constant Field Values

INP_GET_PRF_OF_USR

protected static final String INP_GET_PRF_OF_USR
See Also:
Constant Field Values

OUT_GET_PRF_OF_USR

protected static final String OUT_GET_PRF_OF_USR
See Also:
Constant Field Values

SRV_GET_SUBS_OF_PRF

protected static final String SRV_GET_SUBS_OF_PRF
See Also:
Constant Field Values

INP_GET_SUBS_OF_PRF

protected static final String INP_GET_SUBS_OF_PRF
See Also:
Constant Field Values

OUT_GET_SUBS_OF_PRF

protected static final String OUT_GET_SUBS_OF_PRF
See Also:
Constant Field Values

SRV_ADD_PRF_TO_USR

protected static final String SRV_ADD_PRF_TO_USR
See Also:
Constant Field Values

IN_ADD_PRF_TO_USR_WHERE

protected static final String IN_ADD_PRF_TO_USR_WHERE
See Also:
Constant Field Values

IN_ADD_PRF_TO_USR_WHAT

protected static final String IN_ADD_PRF_TO_USR_WHAT
See Also:
Constant Field Values

SRV_ADD_SUB_TO_USR

protected static final String SRV_ADD_SUB_TO_USR
See Also:
Constant Field Values

IN_ADD_SUB_TO_USR_WHERE

protected static final String IN_ADD_SUB_TO_USR_WHERE
See Also:
Constant Field Values

IN_ADD_SUB_TO_USR_WHAT

protected static final String IN_ADD_SUB_TO_USR_WHAT
See Also:
Constant Field Values

SRV_ADD_SUB_TO_PRF

protected static final String SRV_ADD_SUB_TO_PRF
See Also:
Constant Field Values

IN_ADD_SUB_TO_PRF_WHERE

protected static final String IN_ADD_SUB_TO_PRF_WHERE
See Also:
Constant Field Values

IN_ADD_SUB_TO_PRF_WHAT

protected static final String IN_ADD_SUB_TO_PRF_WHAT
See Also:
Constant Field Values

SRV_GET_SUB_OF_USR

protected static final String SRV_GET_SUB_OF_USR
See Also:
Constant Field Values

INP_GET_SUB_OF_USR

protected static final String INP_GET_SUB_OF_USR
See Also:
Constant Field Values

OUT_GET_SUB_OF_USR

protected static final String OUT_GET_SUB_OF_USR
See Also:
Constant Field Values

SRV_GET_X

public static final String SRV_GET_X
See Also:
Constant Field Values

INP_GET_X

public static final String INP_GET_X
See Also:
Constant Field Values

OUT_GET_X

public static final String OUT_GET_X
See Also:
Constant Field Values

SRV_ADD_X

public static final String SRV_ADD_X
See Also:
Constant Field Values

INP_ADD_X

public static final String INP_ADD_X
See Also:
Constant Field Values

SRV_CHN_X

public static final String SRV_CHN_X
See Also:
Constant Field Values

INP_CHN_X

public static final String INP_CHN_X
See Also:
Constant Field Values

SRV_REM_X

public static final String SRV_REM_X
See Also:
Constant Field Values

INP_REM_X

public static final String INP_REM_X
See Also:
Constant Field Values

profiles

protected static ServiceProfile[] profiles
Where the service profiles are stored.

Constructor Detail

SCalleeProvidedService

public SCalleeProvidedService(String uri)
Default constructor.

Parameters:
uri - Instance URI
Method Detail

getServiceProfiles

public static ServiceProfile[] getServiceProfiles(String namespace,
                                                  String ontologyURI,
                                                  String[] path,
                                                  String editedURI)
Gives you the 4 typical service profiles of an editor service: Get, Add, Change and Remove. When handling requests in you Callee, you can use the references to services and arguments URIs prepending namespace to SimpleEditor constants.

Parameters:
namespace - The namespace of your server, ending with the character #. You can optionally add some prefix after the # if you use SimpleEditor more than once in the same Callee.
ontologyURI - The MY_URI of the class of Service ontology you are going to implement
path - The property path from the root of the Service ontology concept to the exact concept you want to manage
editedURI - The MY_URI of the class of the concept ontology that you want to manage, which is at the end of the property path
Returns:
An array with the 4 typical service profiles

getClassURI

public String getClassURI()
Description copied from class: ManagedIndividual
Get the class URI for this ManagedIndividual. All non-abstract subclasses MUST overwrite this method!

Overrides:
getClassURI in class ProfilingService
Returns:
The class URI.


Copyright © 2014 universAAL Consortium. All Rights Reserved.