/
DatavaluedPropertyAtom.java
43 lines (35 loc) · 1.13 KB
/
DatavaluedPropertyAtom.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2006 - 2008, Clark & Parsia, LLC. <http://www.clarkparsia.com>
// This source code is available under the terms of the Affero General Public License v3.
//
// Please see LICENSE.txt for full license terms, including the availability of proprietary exceptions.
// Questions, comments, or requests for clarification: licensing@clarkparsia.com
package com.clarkparsia.pellet.rules.model;
import org.mindswap.pellet.utils.URIUtils;
import aterm.ATermAppl;
/**
* <p>
* Title: Datavalued Property Atom
* </p>
* <p>
* Description:
* </p>
* <p>
* Copyright: Copyright (c) 2007
* </p>
* <p>
* Company: Clark & Parsia, LLC. <http://www.clarkparsia.com>
* </p>
*
* @author Ron Alford
*/
public class DatavaluedPropertyAtom extends BinaryAtom<ATermAppl, AtomIObject, AtomDObject> {
public DatavaluedPropertyAtom(ATermAppl predicate, AtomIObject subject, AtomDObject object) {
super(predicate, subject, object);
}
public void accept(RuleAtomVisitor visitor) {
visitor.visit( this );
}
public String toString() {
return URIUtils.getLocalName(getPredicate().getName())+"("+getArgument1()+","+getArgument2()+")";
}
}