OWLModelImpl.java revision 2
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * Created on Dec 16, 2004
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaimport impl.owls.generic.expression.SWRLExpressionImpl;
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaimport impl.owls.grounding.JavaAtomicGroundingImpl;
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaimport impl.owls.grounding.UPnPAtomicGroundingImpl;
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaimport impl.owls.grounding.WSDLAtomicGroundingImpl;
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaimport impl.owls.grounding.WSDLOperationRefImpl;
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březinaimport org.mindswap.exceptions.LockNotSupportedException;
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březinaimport org.mindswap.exceptions.NotImplementedException;
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březinaimport org.mindswap.exceptions.UnboundVariableException;
return ontModel;
return ontModel;
public void prepare() {
public void classify() {
public boolean isClassified() {
public boolean isConsistent() {
return baseOntology;
// "There is no reasoner attached to enable/disable. First attach a reasoner using setReasoner function!");
throw new IllegalArgumentException(
throw new IllegalArgumentException(
return reasoner;
return list;
return list;
return list;
return list;
return list;
return list;
return type;
return entity;
return entity;
return prop;
return getAllIndividuals(
return getAllIndividuals(
return getSubClasses(c, false);
return getAllClasses(
c.getOntology());
if(p instanceof OWLObjectProperty) {
return getAllObjectProperties(
p.getOntology());
return getAllDataProperties(
p.getOntology());
if(p instanceof OWLObjectProperty) {
return getAllObjectProperties(
p.getOntology());
return getAllDataProperties(
p.getOntology());
if(p instanceof OWLObjectProperty) {
return getAllObjectProperties(
p.getOntology());
return getAllDataProperties(
p.getOntology());
return getSuperClasses(c, false);
return getAllClasses(
c.getOntology());
return getAllClasses(
c.getOntology());
return getAllIndividuals(
c.getOntology());
return getAllClasses(
* @see org.mindswap.owl.OWLModel#getProperty(org.mindswap.owl.OWLIndividual, org.mindswap.owl.OWLObjectProperty)
return getFirstIndividual(
* @see org.mindswap.owl.OWLModel#getProperties(org.mindswap.owl.OWLIndividual, org.mindswap.owl.OWLObjectProperty)
return getAllIndividuals(
null,
while(i.hasNext()) {
return result;
* @see org.mindswap.owl.OWLModel#getProperty(org.mindswap.owl.OWLIndividual, org.mindswap.owl.OWLDataProperty)
return value;
return result;
* @see org.mindswap.owl.OWLModel#getProperty(org.mindswap.owl.OWLIndividual, org.mindswap.owl.OWLDataProperty, java.lang.String)
return value;
return null;
* @see org.mindswap.owl.OWLModel#getProperties(org.mindswap.owl.OWLIndividual, org.mindswap.owl.OWLDataProperty)
return getAllDataValues(
* @see org.mindswap.owl.OWLModel#getIncomingProperty(org.mindswap.owl.OWLObjectProperty, org.mindswap.owl.OWLIndividual)
return getFirstIndividual(
return getAllIndividuals(
return getAllIndividuals(
null,
null,
new Map1(){
return getFirstIndividual(
* @see org.mindswap.owl.OWLModel#getIncomingProperties(org.mindswap.owl.OWLDataProperty, org.mindswap.owl.OWLIndividual)
return getAllIndividuals(
* @see org.mindswap.owl.OWLModel#hasProperty(org.mindswap.owl.OWLIndividual, org.mindswap.owl.OWLProperty)
return null;
while(i.hasNext()) {
return set;
while(i.hasNext()) {
return set;
while(i.hasNext()) {
return set;
while(i.hasNext()) {
return list;
while(i.hasNext()) {
return null;
while(i.hasNext()) {
return list;
LOOP:
if( skipUnground )
continue LOOP;
throw new NotImplementedException();
throw new NotImplementedException();
throw new IllegalArgumentException(
return Node.createLiteral(Utils.calendarToXSDDateTimeString(nodeVal.getDate()), null, XSDDatatype.XSDdateTime) ;
if( c != null )
return query( q );
return result;
public AnyOrder createAnyOrder(URI uri) { return createAnyOrder(createInstance(OWLS.Process.AnyOrder, uri)); }
public AtomicProcess createAtomicProcess() { return new AtomicProcessImpl(createInstance(OWLS.Process.AtomicProcess)); }
public AtomicProcess createAtomicProcess(URI uri) { return new AtomicProcessImpl(createInstance(OWLS.Process.AtomicProcess, uri)); }
public Choice createChoice(URI uri) { return createChoice(createInstance(OWLS.Process.Choice, uri)); }
public CompositeProcess createCompositeProcess() { return createCompositeProcess(createInstance(OWLS.Process.CompositeProcess)); }
public CompositeProcess createCompositeProcess(URI uri) { return createCompositeProcess(createInstance(OWLS.Process.CompositeProcess, uri)); }
public Condition createSWRLCondition() { return new SWRLExpressionImpl(createInstance(OWLS.Expression.SWRL_Condition)); }
public Condition createSWRLCondition(URI uri) { return new SWRLExpressionImpl(createInstance(OWLS.Expression.SWRL_Condition, uri)); }
public Expression createSWRLExpression() { return new SWRLExpressionImpl(createInstance(OWLS.Expression.SWRL_Expression)); }
public Expression createSWRLExpression(URI uri) { return new SWRLExpressionImpl(createInstance(OWLS.Expression.SWRL_Expression, uri)); }
public ForEach createForEach(URI uri) { return createForEach(createInstance(OWLS.Process.ForEach, uri)); }
public Grounding createGrounding() { return createGrounding(createInstance(OWLS.Grounding.WsdlGrounding)); }
public Grounding createGrounding(URI uri) { return createGrounding(createInstance(OWLS.Grounding.WsdlGrounding, uri)); }
public IfThenElse createIfThenElse() { return new IfThenElseImpl(createInstance(OWLS.Process.IfThenElse)); }
public IfThenElse createIfThenElse(URI uri) { return new IfThenElseImpl(createInstance(OWLS.Process.IfThenElse, uri)); }
public Input createInput(URI uri) { return new InputImpl(createInstance(OWLS.Process.Input, uri)); }
public InputBinding createInputBinding() { return new InputBindingImpl(createInstance(OWLS.Process.InputBinding)); }
public InputBinding createInputBinding(URI uri) { return new InputBindingImpl(createInstance(OWLS.Process.InputBinding, uri)); }
public MessageMap createWSDLInputMessageMap() { return createWSDLMessageMap(createInstance(OWLS.Grounding.WsdlInputMessageMap)); }
public MessageMap createWSDLOutputMessageMap() { return createWSDLMessageMap(createInstance(OWLS.Grounding.WsdlOutputMessageMap)); }
public MessageMap createUPnPMessageMap() { return createUPnPMessageMap(createInstance(FLAServiceOnt.UPnPMap)); }
public Output createOutput(URI uri) { return new OutputImpl(createInstance(OWLS.Process.Output, uri)); }
public OutputBinding createOutputBinding() { return new OutputBindingImpl(createInstance(OWLS.Process.OutputBinding)); }
public OutputBinding createOutputBinding(URI uri) { return new OutputBindingImpl(createInstance(OWLS.Process.OutputBinding, uri)); }
public Perform createPerform(URI uri) { return new PerformImpl(createInstance(OWLS.Process.Perform, uri)); }
public Produce createProduce(URI uri) { return createProduce(createInstance(OWLS.Process.Produce, uri)); }
public Profile createProfile(URI uri) { return createProfile(createInstance(OWLS.Profile.Profile, uri)); }
public RepeatUntil createRepeatUntil() { return new RepeatUntilImpl(createInstance(OWLS.Process.RepeatUntil)); }
public RepeatUntil createRepeatUntil(URI uri) { return new RepeatUntilImpl(createInstance(OWLS.Process.RepeatUntil, uri)); }
public RepeatWhile createRepeatWhile() { return new RepeatWhileImpl(createInstance(OWLS.Process.RepeatWhile)); }
public RepeatWhile createRepeatWhile(URI uri) { return new RepeatWhileImpl(createInstance(OWLS.Process.RepeatWhile, uri)); }
public Result createResult(URI uri) { return new ResultImpl(createInstance(OWLS.Process.Result, uri)); }
public Sequence createSequence(URI uri) { return createSequence(createInstance(OWLS.Process.Sequence, uri)); }
public Service createService(URI uri) { return createService(createInstance(OWLS.Service.Service, uri)); }
public ServiceParameter createServiceParameter() { return createServiceParameter(createInstance(OWLS.Profile.ServiceParameter)); }
public ServiceParameter createServiceParameter(URI uri) { return createServiceParameter(createInstance(OWLS.Profile.ServiceParameter, uri)); }
public SplitJoin createSplitJoin() { return createSplitJoin(createInstance(OWLS.Process.SplitJoin)); }
public SplitJoin createSplitJoin(URI uri) { return createSplitJoin(createInstance(OWLS.Process.SplitJoin, uri)); }
public Grounding createJavaGrounding() { return createJavaGrounding(createInstance(MoreGroundings.JavaGrounding)); }
public Grounding createJavaGrounding(URI uri) { return createJavaGrounding(createInstance(MoreGroundings.JavaGrounding, uri)); }
public ValueOf createValueOf(URI uri) { return new ValueOfImpl(createInstance(OWLS.Process.ValueOf, uri)); }
switch(type) {
return null;
public boolean isLockSupported() {
return writer;