edu.umd.cfar.lamp.apploader
Class LAL

java.lang.Object
  extended byedu.umd.cfar.lamp.apploader.LAL

public class LAL
extends java.lang.Object

Namespace schema for LAMP AppLoader. For information, see the namespace document.

Author:
davidm

Field Summary
static com.hp.hpl.jena.rdf.model.Resource Action
          All instances of an action.
static com.hp.hpl.jena.rdf.model.Property actionCommand
          The string to send with the action.
static com.hp.hpl.jena.rdf.model.Resource ActionListener
          The class of OWL nodes that describe java action bindings.
static com.hp.hpl.jena.rdf.model.Property addressOf
          The URI of the given resource.
static com.hp.hpl.jena.rdf.model.Property addTo
          The bean to which to add this.
static com.hp.hpl.jena.rdf.model.Resource ApplicationBean
          A java object that is loaded when the application is loaded and deleted after it ends.
static com.hp.hpl.jena.rdf.model.Resource Bean
          An instance of a java object.
static com.hp.hpl.jena.rdf.model.Resource BeanProperty
          Description of a property on a bean.
static com.hp.hpl.jena.rdf.model.Property className
          The name of the java class of which a bean is an instance.
static com.hp.hpl.jena.rdf.model.Resource Core
          The ApplicationBean that refers to the current instance of the AppLoader.
static com.hp.hpl.jena.rdf.model.Property documentModified
          Indicates if bean's currently loaded document has been modified since it has been saved.
static com.hp.hpl.jena.rdf.model.Property documentName
          Indicates the name of the bean's currently loaded document.
static com.hp.hpl.jena.rdf.model.Property icon
          An icon representing the bean.
static com.hp.hpl.jena.rdf.model.Property invoke
          Invokes an arbitrary function. used in the form [a bean] invoke [a MethodInvocation].
static com.hp.hpl.jena.rdf.model.Property invokedOn
          Invokes an arbitrary function when applied as a bean property value. used in the form [a MethodInvocation] invokedOn [a bean].
static com.hp.hpl.jena.rdf.model.Property lang
          Attempts to be the equivalent of the ^^ln for strings for Resources.
static com.hp.hpl.jena.rdf.model.Property listenerBean
          Binds an ActionListener to a Bean.
static com.hp.hpl.jena.rdf.model.Property listenerType
          The bean property name to check for on the listener bean to get the listener.
static com.hp.hpl.jena.rdf.model.Resource MethodInvocation
          Element used for invoking arbitrary parameters.
static com.hp.hpl.jena.rdf.model.Property methodName
          The name of the method to invoke.
static com.hp.hpl.jena.rdf.model.Property parameters
          The parameters of the method.
static com.hp.hpl.jena.rdf.model.Property parameterTypes
          The classes of the parameters of the method.
static com.hp.hpl.jena.rdf.model.Resource Parent
          URI that means 'the parent bean'.
static com.hp.hpl.jena.rdf.model.Property propertyName
          The name of the property.
static com.hp.hpl.jena.rdf.model.Property propertyOf
          What bean the property is attached to.
static com.hp.hpl.jena.rdf.model.Property propertyValue
          The value to which to set the property
static com.hp.hpl.jena.rdf.model.Property requires
          References a bean that must be loaded before this one, or that it uses in some way.
static com.hp.hpl.jena.rdf.model.Property sendsTo
          Selects a listener to receive the action event.
static com.hp.hpl.jena.rdf.model.Property setProperty
          Set the given property to the described value.
static com.hp.hpl.jena.rdf.model.Property shellCommand
          The name of the shell command that invoked this instance of the application.
static com.hp.hpl.jena.rdf.model.Property systemDirectory
          The install directory, where other useful files may be found.
static com.hp.hpl.jena.rdf.model.Resource TemporaryBean
          A bean that fits the specification for a bean that is relative to the current object, but doesn't get stored and may be reallocated as required.
protected static java.lang.String uri
           
static com.hp.hpl.jena.rdf.model.Property userDirectory
          The user directory, e.g.
 
Constructor Summary
LAL()
           
 
Method Summary
static boolean aBean(com.hp.hpl.jena.rdf.model.Resource r)
          If this returns true, then the resource describes a bean.
static boolean anApplicationBean(com.hp.hpl.jena.rdf.model.Resource r)
          Tests to see if the resource describes an application bean.
static boolean aTemporaryBean(com.hp.hpl.jena.rdf.model.Resource r)
          Tests to see if the resource describes, specifically, a temporary bean.
static java.lang.String getURI()
          Returns the URI for this schema, http://viper-toolkit.sourceforge.net/owl/apploader#.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

protected static final java.lang.String uri
See Also:
Constant Field Values

userDirectory

public static final com.hp.hpl.jena.rdf.model.Property userDirectory
The user directory, e.g. { [] lal:userDirectory "~/.fooApp" . } It should probably be computed on the fly using a trigger on the longName 'user.home' per the java standard.


systemDirectory

public static final com.hp.hpl.jena.rdf.model.Property systemDirectory
The install directory, where other useful files may be found. Doesn't have to be set if the directiry is where the system.n3 file is loaded from.


Bean

public static final com.hp.hpl.jena.rdf.model.Resource Bean
An instance of a java object.


ApplicationBean

public static final com.hp.hpl.jena.rdf.model.Resource ApplicationBean
A java object that is loaded when the application is loaded and deleted after it ends.


TemporaryBean

public static final com.hp.hpl.jena.rdf.model.Resource TemporaryBean
A bean that fits the specification for a bean that is relative to the current object, but doesn't get stored and may be reallocated as required. Multiple copies may be loaded at once, and there is no explicit way to globally refer to them (using the uri will just make more).


Parent

public static final com.hp.hpl.jena.rdf.model.Resource Parent
URI that means 'the parent bean'.


className

public static final com.hp.hpl.jena.rdf.model.Property className
The name of the java class of which a bean is an instance.


requires

public static final com.hp.hpl.jena.rdf.model.Property requires
References a bean that must be loaded before this one, or that it uses in some way.


addressOf

public static final com.hp.hpl.jena.rdf.model.Property addressOf
The URI of the given resource. It might be a good idea to replace this with rdf:subject, but that is pushing the use of the reification property.


addTo

public static final com.hp.hpl.jena.rdf.model.Property addTo
The bean to which to add this. Will call the specified bean's 'add' method with the subject bean as the parameter.


Core

public static final com.hp.hpl.jena.rdf.model.Resource Core
The ApplicationBean that refers to the current instance of the AppLoader.


shellCommand

public static final com.hp.hpl.jena.rdf.model.Property shellCommand
The name of the shell command that invoked this instance of the application. This is used for the '-h' command line output, or the application bar title, if there is no dc:title or rdf:label.


icon

public static final com.hp.hpl.jena.rdf.model.Property icon
An icon representing the bean. It will be used when the bean is used in a context where it is required. The target should be the uri of the bean, although it can have an alternative location, using the '=' command, and an lal:forLanguage.


BeanProperty

public static final com.hp.hpl.jena.rdf.model.Resource BeanProperty
Description of a property on a bean.


propertyOf

public static final com.hp.hpl.jena.rdf.model.Property propertyOf
What bean the property is attached to.


setProperty

public static final com.hp.hpl.jena.rdf.model.Property setProperty
Set the given property to the described value.


propertyName

public static final com.hp.hpl.jena.rdf.model.Property propertyName
The name of the property.


propertyValue

public static final com.hp.hpl.jena.rdf.model.Property propertyValue
The value to which to set the property


ActionListener

public static final com.hp.hpl.jena.rdf.model.Resource ActionListener
The class of OWL nodes that describe java action bindings.


listenerBean

public static final com.hp.hpl.jena.rdf.model.Property listenerBean
Binds an ActionListener to a Bean.


listenerType

public static final com.hp.hpl.jena.rdf.model.Property listenerType
The bean property name to check for on the listener bean to get the listener. Meaning, the bean has to have a getListenerType method, where ListenerType is the value of this property.


Action

public static final com.hp.hpl.jena.rdf.model.Resource Action
All instances of an action.


sendsTo

public static final com.hp.hpl.jena.rdf.model.Property sendsTo
Selects a listener to receive the action event.


actionCommand

public static final com.hp.hpl.jena.rdf.model.Property actionCommand
The string to send with the action.


lang

public static final com.hp.hpl.jena.rdf.model.Property lang
Attempts to be the equivalent of the ^^ln for strings for Resources.


documentName

public static final com.hp.hpl.jena.rdf.model.Property documentName
Indicates the name of the bean's currently loaded document. This probably won't be serialized, but instead kept in the temporary preferences context.


documentModified

public static final com.hp.hpl.jena.rdf.model.Property documentModified
Indicates if bean's currently loaded document has been modified since it has been saved. A boolean property. This probably won't be serialized, but instead kept in the temporary preferences context.


MethodInvocation

public static final com.hp.hpl.jena.rdf.model.Resource MethodInvocation
Element used for invoking arbitrary parameters. Either use the bean :invoke method syntax or the method :invokedOn bean syntax. The second method may allow using the returned value. This is dangerous, as this is run during initialization, which is nondeterministic.


invoke

public static final com.hp.hpl.jena.rdf.model.Property invoke
Invokes an arbitrary function. used in the form [a bean] invoke [a MethodInvocation].


invokedOn

public static final com.hp.hpl.jena.rdf.model.Property invokedOn
Invokes an arbitrary function when applied as a bean property value. used in the form [a MethodInvocation] invokedOn [a bean].


methodName

public static final com.hp.hpl.jena.rdf.model.Property methodName
The name of the method to invoke.


parameters

public static final com.hp.hpl.jena.rdf.model.Property parameters
The parameters of the method.


parameterTypes

public static final com.hp.hpl.jena.rdf.model.Property parameterTypes
The classes of the parameters of the method. Use the java class name mangling, or actual classes (somehow).

Constructor Detail

LAL

public LAL()
Method Detail

getURI

public static java.lang.String getURI()
Returns the URI for this schema, http://viper-toolkit.sourceforge.net/owl/apploader#.

Returns:
the URI for this schema

aBean

public static final boolean aBean(com.hp.hpl.jena.rdf.model.Resource r)
If this returns true, then the resource describes a bean.

Parameters:
r - The resource to check
Returns:
true when the resource is a Bean. This is necessary, because I haven't hooked up an OWL reasoner to the apploader yet.

aTemporaryBean

public static final boolean aTemporaryBean(com.hp.hpl.jena.rdf.model.Resource r)
Tests to see if the resource describes, specifically, a temporary bean.

Parameters:
r - the resource to check.
Returns:
true if the resources is a lal:TemporaryBean.

anApplicationBean

public static final boolean anApplicationBean(com.hp.hpl.jena.rdf.model.Resource r)
Tests to see if the resource describes an application bean.

Parameters:
r - the resource to check.
Returns:
true if the resources is a lal:ApplicationBean.