Java Doc for Individual.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » ontology » 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.ontology 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.ontology.Individual

All known Subclasses:   com.hp.hpl.jena.ontology.impl.IndividualImpl,
Individual
public interface Individual extends OntResource(Code)

Interface that encapsulates an individual in an ontology, sometimes referred to as a fact or assertion, or a member of the a-box. In order to be recognised as an individual, rather than a generic resource, at least one rdf:type statement, referring to a known class, must be present in the model.


author:
   Ian Dickinson, HP Labs
author:
   (email)
version:
   CVS $Id: Individual.java,v 1.17 2008/01/23 12:47:17 ian_dickinson Exp $




Method Summary
public  voidaddOntClass(Resource cls)
    

Add the given ontology class as one of the classes to which this individual belongs.

public  OntClassgetOntClass()
    

Answer an ontology class to which this individual belongs.

public  OntClassgetOntClass(boolean direct)
    

Answer an ontology class to which this individual belongs.

public  booleanhasOntClass(Resource ontClass, boolean direct)
    

Answer true if this individual is a member of the class denoted by the given class resource.


Parameters:
  ontClass - Denotes an ontology class to which this individual may belong
Parameters:
  direct - If true, only consider the direct types of this individual, ignoringthe super-classes of the stated types.
public  booleanhasOntClass(Resource ontClass)
    

Answer true if this individual is a member of the class denoted by the given ontology class resource.

public  booleanhasOntClass(String uri)
    
public  ExtendedIteratorlistOntClasses(boolean direct)
    

Answer an iterator over the ontology classes to which this individual belongs. The members of the iterator will be OntClass objects.


Parameters:
  direct - If true, only answer those resources that are direct typesof this individual, not the super-classes of the class etc.
public  voidremoveOntClass(Resource ontClass)
    

Attempt to remove this individual as a member of the given ontology class.

public  voidsetOntClass(Resource cls)
    

Set the ontology class for this individual, replacing any existing class membership.




Method Detail
addOntClass
public void addOntClass(Resource cls)(Code)

Add the given ontology class as one of the classes to which this individual belongs. Class membership is encoded using the rdf:type property.


Parameters:
  cls - An RDF resource denoting an additional class to which this individualbelongs.



getOntClass
public OntClass getOntClass()(Code)

Answer an ontology class to which this individual belongs. If the individual belongs to more than one class, which is common in ontology models using a reasoner, then the return value will be one of the possible values but it is not specified which one. In the case of multiple classes, callers should not rely on the return value being consistent, e.g. across runs, since it may depend on the underlying hash indexes in the model.

This method considers any ontology class for the individual, not just direct classes. It is equivalent to getOntClass(false).

A resource denoting the ontology class for this individual, or one of them ifmore than one is defined.
exception:
  ConversionException - if the return value is known to be anontology class, assuming strict type checking is turned on for the underlyingOntModel. See OntModel.setStrictMode(boolean)



getOntClass
public OntClass getOntClass(boolean direct)(Code)

Answer an ontology class to which this individual belongs. If the resource belongs to more than one class, which is common in ontology models using a reasoner, then the return value will be one of the possible values but it is not specified which one. In the case of multiple classes, callers should not rely on the return value being consistent, e.g. across runs, since it may depend on the underlying hash indexes in the model.


Parameters:
  direct - If true, only direct classes are considered.A class is a direct class of this Individual if and only ifthere is no other resource is both an rdf:type of thisindividual and a sub-class of the candidate class. A resource denoting the ontology class for this individual, or one of them ifmore than one is defined.
exception:
  ConversionException - if the return value is known to be anontology class, assuming strict type checking is turned on for the underlyingOntModel. See OntModel.setStrictMode(boolean)



hasOntClass
public boolean hasOntClass(Resource ontClass, boolean direct)(Code)

Answer true if this individual is a member of the class denoted by the given class resource.


Parameters:
  ontClass - Denotes an ontology class to which this individual may belong
Parameters:
  direct - If true, only consider the direct types of this individual, ignoringthe super-classes of the stated types. True if this individual is a member of the given class, possibly taking thedirectness constraint into account.



hasOntClass
public boolean hasOntClass(Resource ontClass)(Code)

Answer true if this individual is a member of the class denoted by the given ontology class resource. Not limited to only direct class relationships, so this is equivalent to:

 hasOntClass( ontClass, false );
 


Parameters:
  ontClass - Denotes a class to which this individual may belong True if this individual has the given class as one of its rdf:type's.



hasOntClass
public boolean hasOntClass(String uri)(Code)

Answer true if this individual is a member of the class denoted by the given URI.


Parameters:
  uri - Denotes the URI of a class to which this value may belong True if this individual has the given class as one of its rdf:type's.



listOntClasses
public ExtendedIterator listOntClasses(boolean direct)(Code)

Answer an iterator over the ontology classes to which this individual belongs. The members of the iterator will be OntClass objects.


Parameters:
  direct - If true, only answer those resources that are direct typesof this individual, not the super-classes of the class etc. An iterator over the set of this individual's classes. Each memberof the iteration will be an OntClass.



removeOntClass
public void removeOntClass(Resource ontClass)(Code)

Attempt to remove this individual as a member of the given ontology class. This relationship is represented by a rdf:type statement in the underlying model. If this relationship was originally asserted, then removal will always succeed. However, if the rdf:type relationship is entailed by the action of an attached reasoner, it may not be possible to directly remove it. Callers should instead update the assertions and axioms that entail the class membership relationship, and ensure the reasoner gets chance to update the entailments.

If this individual is not a member of the given class, the operation has no effect.


Parameters:
  ontClass - A resource denoting a class that that is to be removed fromthe set of classes to which this individual belongs



setOntClass
public void setOntClass(Resource cls)(Code)

Set the ontology class for this individual, replacing any existing class membership. Class membership is encoded using the rdf:type property. Any existing statements for the RDF type will first be removed.


Parameters:
  cls - The RDF resource denoting the new class to which this individual belongs,which will replace any existing rdf:type property.



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