Java Doc for TriplePattern.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » reasoner » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.reasoner 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.reasoner.TriplePattern

All known Subclasses:   com.hp.hpl.jena.reasoner.rulesys.impl.MutableTriplePattern,
TriplePattern
public class TriplePattern implements ClauseEntry(Code)
Datastructure which defines a triple pattern as used in simple rules and in find interfaces.

Wildcards are recorded by using Node_RuleVariable entries rather than nulls because they can be named. If a null is specified that is converted to a variable of name "". Note that whilst some engines might simply require Node_Variables the forward engine requires variables represented using the more specialized subclass - Node_RuleVariable.

It would make more sense to have TriplePattern subclass Triple but that is final for some strange reason.


author:
   Dave Reynolds
version:
   $Revision: 1.28 $ on $Date: 2008/01/02 12:07:00 $


Field Summary
protected  Nodeobject
    
protected  Nodepredicate
    
protected  Nodesubject
    

Constructor Summary
public  TriplePattern(Node subject, Node predicate, Node object)
     Constructor - builds a pattern from three nodes, use Node_RuleVariables as variables, use a variable with an empty name as a wildcard, can also use null as a wildcard.
public  TriplePattern(TripleMatch match)
     Constructor - builds a pattern from a standard triple match.
public  TriplePattern(Triple match)
     Constructor - builds a dgenerate pattern from a simple triple.

Method Summary
public  TripleasTriple()
    
public  TripleMatchasTripleMatch()
    
public  booleancompatibleWith(TriplePattern pattern)
     Compare two patterns for compatibility - i.e.
public  booleanequals(Object o)
    
public  NodegetObject()
     Returns the object.
public  NodegetPredicate()
     Returns the predicate.
public  NodegetSubject()
     Returns the subject.
public  inthashCode()
    
public  booleanisGround()
     Test if the pattern is ground, contains no variables.
public  booleanisLegal()
     Check a pattern to see if it is legal, used to exclude backchaining goals that could never be satisfied.
public  booleansameAs(Object o)
     Compare triple patterns, taking into account variable indices.
public static  StringsimplePrintString(Triple t)
    
public static  StringsimplePrintString(Node n)
    
public  booleansubsumes(TriplePattern arg)
     Compare two patterns and return true if arg is a more specific (more grounded) version of this one.
public  StringtoString()
    
public  booleanvariantOf(TriplePattern pattern)
     Test if a pattern is just a variant of this pattern.

Field Detail
object
protected Node object(Code)
The object element of the pattern



predicate
protected Node predicate(Code)
The predicate element of the pattern



subject
protected Node subject(Code)
The subject element of the pattern




Constructor Detail
TriplePattern
public TriplePattern(Node subject, Node predicate, Node object)(Code)
Constructor - builds a pattern from three nodes, use Node_RuleVariables as variables, use a variable with an empty name as a wildcard, can also use null as a wildcard.



TriplePattern
public TriplePattern(TripleMatch match)(Code)
Constructor - builds a pattern from a standard triple match. Node that any filter part of the triple match will not be represented within the pattern and will need to be checked for separately.



TriplePattern
public TriplePattern(Triple match)(Code)
Constructor - builds a dgenerate pattern from a simple triple. This would be much easier if we merged Triples and TriplePatterns!




Method Detail
asTriple
public Triple asTriple()(Code)
Return the triple pattern as a triple



asTripleMatch
public TripleMatch asTripleMatch()(Code)
Return the triple pattern as a triple match



compatibleWith
public boolean compatibleWith(TriplePattern pattern)(Code)
Compare two patterns for compatibility - i.e. potentially unifiable. Two patterns are "compatible" in the sense we mean here if all their ground terms match. A variable in either pattern can match a ground term or a variable in the other. We are not, currently, checking for multiple occurances of the same variable. Functor-valued object literals are treated as a special case which are only checked for name/arity matching.



equals
public boolean equals(Object o)(Code)
Equality override - used so that TriplePattern variants (same to within variable renaming) test as equals



getObject
public Node getObject()(Code)
Returns the object. Node



getPredicate
public Node getPredicate()(Code)
Returns the predicate. Node



getSubject
public Node getSubject()(Code)
Returns the subject. Node



hashCode
public int hashCode()(Code)
hash function override



isGround
public boolean isGround()(Code)
Test if the pattern is ground, contains no variables.



isLegal
public boolean isLegal()(Code)
Check a pattern to see if it is legal, used to exclude backchaining goals that could never be satisfied. A legal pattern cannot have literals in the subject or predicate positions and is not allowed nested functors in the object.



sameAs
public boolean sameAs(Object o)(Code)
Compare triple patterns, taking into account variable indices. The equality function ignores differences between variables.



simplePrintString
public static String simplePrintString(Triple t)(Code)
Simplified printable name for a triple



simplePrintString
public static String simplePrintString(Node n)(Code)
Simplified printable name for a node



subsumes
public boolean subsumes(TriplePattern arg)(Code)
Compare two patterns and return true if arg is a more specific (more grounded) version of this one. Does not handle functors.



toString
public String toString()(Code)
Printable string



variantOf
public boolean variantOf(TriplePattern pattern)(Code)
Test if a pattern is just a variant of this pattern. I.e. it is the same up to variable renaming. This takes into account multiple occurances of the same variable.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.