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


com.hp.hpl.jena.ontology.impl.OntResourceImpl
   com.hp.hpl.jena.ontology.impl.OntologyImpl

OntologyImpl
public class OntologyImpl extends OntResourceImpl implements Ontology(Code)

Implementation of the Ontology interface, encapsulating nodes that hold the meta-data about whole ontologies.


author:
   Ian Dickinson, HP Labs
author:
   (email)
version:
   CVS $Id: OntologyImpl.java,v 1.15 2008/01/02 12:08:02 andy_seaborne Exp $


Field Summary
public static  Implementationfactory
     A factory for generating Ontology facets from nodes in enhanced graphs.

Constructor Summary
public  OntologyImpl(Node n, EnhGraph g)
    

Construct an ontology metadata node represented by the given node in the given graph.


Method Summary
public  voidaddBackwardCompatibleWith(Resource res)
    

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) is backwards compatible with.


Parameters:
  res - Represents a resource that this ontology is compatible with.
exception:
  OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile.
public  voidaddImport(Resource res)
    

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) imports.


Parameters:
  res - Represents a resource that this ontology imports.
exception:
  OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile.
public  voidaddIncompatibleWith(Resource res)
    

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) is incompatible with.


Parameters:
  res - Represents a resource that this ontology is incompatible with.
exception:
  OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile.
public  voidaddPriorVersion(Resource res)
    

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) supercedes.


Parameters:
  res - Represents a resource that this ontology supercedes.
exception:
  OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile.
public  OntResourcegetBackwardCompatibleWith()
    

Answer a resource that represents an ontology that is backwards compatible with this ontology.

public  OntResourcegetImport()
    

Answer a resource that represents an ontology imported by this ontology.

public  OntResourcegetIncompatibleWith()
    

Answer a resource that represents an ontology that is is incompatible with this ontology.

public  OntResourcegetPriorVersion()
    

Answer a resource that represents an ontology that is superceded by this ontology.

public  booleanhasPriorVersion(Resource res)
    
public  booleanimports(Resource res)
    
public  booleanisBackwardCompatibleWith(Resource res)
    
public  booleanisIncompatibleWith(Resource res)
    
public  ExtendedIteratorlistBackwardCompatibleWith()
    

Answer an iterator over all of the resources representing ontologies that this ontology is backwards compatible with.

public  ExtendedIteratorlistImports()
    

Answer an iterator over all of the resources representing ontologies imported by this ontology.

public  ExtendedIteratorlistIncompatibleWith()
    

Answer an iterator over all of the resources representing ontologies that this ontology is incompatible with.

public  ExtendedIteratorlistPriorVersion()
    

Answer an iterator over all of the resources representing ontologies that this ontology supercedes.

public  voidremoveBackwardCompatibleWith(Resource res)
    

Remove the statement that this ontology is backwards compatible with the ontology represented by the given resource.

public  voidremoveImport(Resource res)
    

Remove the statement that this ontology imports the ontology represented by the given resource.

public  voidremoveIncompatibleWith(Resource res)
    

Remove the statement that the given ontology is incompatible with this ontology.

public  voidremovePriorVersion(Resource res)
    

Remove the statement that the given ontology is a prior version of this ontology.

public  voidsetBackwardCompatibleWith(Resource res)
    

Assert that this ontology is backward compatible with the given ontology.

public  voidsetImport(Resource res)
    

Assert that this ontology imports only the given ontology.

public  voidsetIncompatibleWith(Resource res)
    

Assert that this ontology is incompatible with the given ontology.

public  voidsetPriorVersion(Resource res)
    

Assert that this ontology is a new version of the given ontology.


Field Detail
factory
public static Implementation factory(Code)
A factory for generating Ontology facets from nodes in enhanced graphs.




Constructor Detail
OntologyImpl
public OntologyImpl(Node n, EnhGraph g)(Code)

Construct an ontology metadata node represented by the given node in the given graph.


Parameters:
  n - The node that represents the resource
Parameters:
  g - The enh graph that contains n




Method Detail
addBackwardCompatibleWith
public void addBackwardCompatibleWith(Resource res)(Code)

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) is backwards compatible with.


Parameters:
  res - Represents a resource that this ontology is compatible with.
exception:
  OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile.



addImport
public void addImport(Resource res)(Code)

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) imports.


Parameters:
  res - Represents a resource that this ontology imports.
exception:
  OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile.



addIncompatibleWith
public void addIncompatibleWith(Resource res)(Code)

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) is incompatible with.


Parameters:
  res - Represents a resource that this ontology is incompatible with.
exception:
  OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile.



addPriorVersion
public void addPriorVersion(Resource res)(Code)

Add a resource representing an ontology that this ontology (strictly, the ontology reprsented by this node) supercedes.


Parameters:
  res - Represents a resource that this ontology supercedes.
exception:
  OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile.



getBackwardCompatibleWith
public OntResource getBackwardCompatibleWith()(Code)

Answer a resource that represents an ontology that is backwards compatible with this ontology. If there is more than one such resource, an arbitrary selection is made.

An ont resource representing an ontology that this ontology is compatible with
exception:
  OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile.



getImport
public OntResource getImport()(Code)

Answer a resource that represents an ontology imported by this ontology. If there is more than one such resource, an arbitrary selection is made.

An ont resource representing a resource that this ontology imports
exception:
  OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile.



getIncompatibleWith
public OntResource getIncompatibleWith()(Code)

Answer a resource that represents an ontology that is is incompatible with this ontology. If there is more than one such resource, an arbitrary selection is made.

An ont resource representing an ontology that this ontology is incompatible with
exception:
  OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile.



getPriorVersion
public OntResource getPriorVersion()(Code)

Answer a resource that represents an ontology that is superceded by this ontology. If there is more than one such resource, an arbitrary selection is made.

An ont resource representing an ontology that this ontology supercedes
exception:
  OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile.



hasPriorVersion
public boolean hasPriorVersion(Resource res)(Code)

Answer true if this ontology (the ontology represented by this resource) supercedes the given resource.


Parameters:
  res - A resource to test against True if this ontology supercedes the ontology represented by res



imports
public boolean imports(Resource res)(Code)

Answer true if this ontology (the ontology represented by this resource) imports the given resource.


Parameters:
  res - A resource to test against True if this ontology imports the ontology represented by res



isBackwardCompatibleWith
public boolean isBackwardCompatibleWith(Resource res)(Code)

Answer true if this ontology (the ontology represented by this resource) is backward compatible with the given resource.


Parameters:
  res - A resource to test against True if this ontology is compatible with the ontology represented by res



isIncompatibleWith
public boolean isIncompatibleWith(Resource res)(Code)

Answer true if this ontology (the ontology represented by this resource) is incompatible with the given resource.


Parameters:
  res - A resource to test against True if this ontology is incompatible with the ontology represented by res



listBackwardCompatibleWith
public ExtendedIterator listBackwardCompatibleWith()(Code)

Answer an iterator over all of the resources representing ontologies that this ontology is backwards compatible with. Each element of the iterator will be an OntResource .

An iterator over the ontology resources compatible with this ontology
exception:
  OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile.



listImports
public ExtendedIterator listImports()(Code)

Answer an iterator over all of the resources representing ontologies imported by this ontology. Each elemeent of the iterator will be an OntResource .

An iterator over the ontology import resources
exception:
  OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile.



listIncompatibleWith
public ExtendedIterator listIncompatibleWith()(Code)

Answer an iterator over all of the resources representing ontologies that this ontology is incompatible with. Each element of the iterator will be an OntResource .

An iterator over the ontology resources that this ontology is incompatible with
exception:
  OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile.



listPriorVersion
public ExtendedIterator listPriorVersion()(Code)

Answer an iterator over all of the resources representing ontologies that this ontology supercedes. Each element of the iterator will be an OntResource .

An iterator over the ontology resources superceded by this ontology
exception:
  OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile.



removeBackwardCompatibleWith
public void removeBackwardCompatibleWith(Resource res)(Code)

Remove the statement that this ontology is backwards compatible with the ontology represented by the given resource. If this statement is not true of the current model, nothing happens.


Parameters:
  res - A resource that represents an ontology that is no longer to be imported



removeImport
public void removeImport(Resource res)(Code)

Remove the statement that this ontology imports the ontology represented by the given resource. If this statement is not true of the current model, nothing happens.


Parameters:
  res - A resource that represents an ontology that is no longer to be imported



removeIncompatibleWith
public void removeIncompatibleWith(Resource res)(Code)

Remove the statement that the given ontology is incompatible with this ontology. If this statement is not true of the current model, nothing happens.


Parameters:
  res - A resource that represents an ontology that is no longer incompatible with this ontology



removePriorVersion
public void removePriorVersion(Resource res)(Code)

Remove the statement that the given ontology is a prior version of this ontology. If this statement is not true of the current model, nothing happens.


Parameters:
  res - A resource that represents an ontology that is no longer a prior version of this ontology



setBackwardCompatibleWith
public void setBackwardCompatibleWith(Resource res)(Code)

Assert that this ontology is backward compatible with the given ontology. Any existing statements for sameAs will be removed.


Parameters:
  res - Represents a resource that this ontology is compatible with.
exception:
  OntProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH property is not supported in the current language profile.



setImport
public void setImport(Resource res)(Code)

Assert that this ontology imports only the given ontology. Any existing statements for sameAs will be removed.


Parameters:
  res - Represents a resource that this ontology imports.
exception:
  OntProfileException - If the Profile#IMPORTS()() property is not supported in the current language profile.



setIncompatibleWith
public void setIncompatibleWith(Resource res)(Code)

Assert that this ontology is incompatible with the given ontology. Any existing statements for incompatibleWith will be removed.


Parameters:
  res - Represents a resource that this ontology is incompatible with.
exception:
  OntProfileException - If the Profile.INCOMPATIBLE_WITH property is not supported in the current language profile.



setPriorVersion
public void setPriorVersion(Resource res)(Code)

Assert that this ontology is a new version of the given ontology. Any existing statements for priorVersion will be removed.


Parameters:
  res - Represents a resource that this ontology supercedes.
exception:
  OntProfileException - If the Profile.PRIOR_VERSION property is not supported in the current language profile.



Fields inherited from com.hp.hpl.jena.ontology.impl.OntResourceImpl
final public static String[] KNOWN_LANGUAGES(Code)(Java Doc)
public static Implementation factory(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.ontology.impl.OntResourceImpl
public void addComment(String comment, String lang)(Code)(Java Doc)
public void addComment(Literal comment)(Code)(Java Doc)
public void addDifferentFrom(Resource res)(Code)(Java Doc)
public void addIsDefinedBy(Resource res)(Code)(Java Doc)
public void addLabel(String label, String lang)(Code)(Java Doc)
public void addLabel(Literal label)(Code)(Java Doc)
protected void addListPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc)
protected void addPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc)
public void addRDFType(Resource cls)(Code)(Java Doc)
public void addSameAs(Resource res)(Code)(Java Doc)
public void addSeeAlso(Resource res)(Code)(Java Doc)
public void addVersionInfo(String info)(Code)(Java Doc)
public AllDifferent asAllDifferent()(Code)(Java Doc)
public AnnotationProperty asAnnotationProperty()(Code)(Java Doc)
public OntClass asClass()(Code)(Java Doc)
public DataRange asDataRange()(Code)(Java Doc)
public DatatypeProperty asDatatypeProperty()(Code)(Java Doc)
public Individual asIndividual()(Code)(Java Doc)
public ObjectProperty asObjectProperty()(Code)(Java Doc)
public Ontology asOntology()(Code)(Java Doc)
public OntProperty asProperty()(Code)(Java Doc)
protected void checkProfile(Object term, String name)(Code)(Java Doc)
protected RDFNode convertToType(Resource type, String name, Class cls)(Code)(Java Doc)
public int getCardinality(Property p)(Code)(Java Doc)
public String getComment(String lang)(Code)(Java Doc)
public OntResource getDifferentFrom()(Code)(Java Doc)
public Resource getIsDefinedBy()(Code)(Java Doc)
public String getLabel(String lang)(Code)(Java Doc)
public OntModel getOntModel()(Code)(Java Doc)
public Profile getProfile()(Code)(Java Doc)
public RDFNode getPropertyValue(Property property)(Code)(Java Doc)
public Resource getRDFType()(Code)(Java Doc)
public Resource getRDFType(boolean direct)(Code)(Java Doc)
public OntResource getSameAs()(Code)(Java Doc)
public Resource getSeeAlso()(Code)(Java Doc)
public String getVersionInfo()(Code)(Java Doc)
public boolean hasComment(String comment, String lang)(Code)(Java Doc)
public boolean hasComment(Literal comment)(Code)(Java Doc)
public boolean hasLabel(String label, String lang)(Code)(Java Doc)
public boolean hasLabel(Literal label)(Code)(Java Doc)
protected boolean hasPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc)
public boolean hasRDFType(String uri)(Code)(Java Doc)
public boolean hasRDFType(Resource ontClass)(Code)(Java Doc)
public boolean hasRDFType(Resource ontClass, boolean direct)(Code)(Java Doc)
protected boolean hasRDFType(Resource ontClass, String name, boolean direct)(Code)(Java Doc)
public boolean hasSeeAlso(Resource res)(Code)(Java Doc)
protected static boolean hasType(Node n, EnhGraph g, Resource type)(Code)(Java Doc)
public boolean hasVersionInfo(String info)(Code)(Java Doc)
public boolean isAllDifferent()(Code)(Java Doc)
public boolean isAnnotationProperty()(Code)(Java Doc)
public boolean isClass()(Code)(Java Doc)
public boolean isDataRange()(Code)(Java Doc)
public boolean isDatatypeProperty()(Code)(Java Doc)
public boolean isDefinedBy(Resource res)(Code)(Java Doc)
public boolean isDifferentFrom(Resource res)(Code)(Java Doc)
public boolean isIndividual()(Code)(Java Doc)
public boolean isObjectProperty()(Code)(Java Doc)
public boolean isOntLanguageTerm()(Code)(Java Doc)
public boolean isOntology()(Code)(Java Doc)
public boolean isProperty()(Code)(Java Doc)
public boolean isSameAs(Resource res)(Code)(Java Doc)
protected boolean langTagMatch(String desired, String target)(Code)(Java Doc)
protected ExtendedIterator listAs(Property p, String name, Class cls)(Code)(Java Doc)
public ExtendedIterator listComments(String lang)(Code)(Java Doc)
public ExtendedIterator listDifferentFrom()(Code)(Java Doc)
protected ExtendedIterator listDirectPropertyValues(Property p, String name, Class cls, Property orderRel, boolean direct, boolean inverse)(Code)(Java Doc)
public ExtendedIterator listIsDefinedBy()(Code)(Java Doc)
public ExtendedIterator listLabels(String lang)(Code)(Java Doc)
public NodeIterator listPropertyValues(Property property)(Code)(Java Doc)
public ExtendedIterator listRDFTypes(boolean direct)(Code)(Java Doc)
public ExtendedIterator listSameAs()(Code)(Java Doc)
public ExtendedIterator listSeeAlso()(Code)(Java Doc)
public ExtendedIterator listVersionInfo()(Code)(Java Doc)
protected Object objectAs(Property p, String name, Class asClass)(Code)(Java Doc)
protected int objectAsInt(Property p, String name)(Code)(Java Doc)
protected OntProperty objectAsProperty(Property p, String name)(Code)(Java Doc)
protected OntResource objectAsResource(Property p, String name)(Code)(Java Doc)
public void remove()(Code)(Java Doc)
public void removeComment(String comment, String lang)(Code)(Java Doc)
public void removeComment(Literal comment)(Code)(Java Doc)
public void removeDefinedBy(Resource res)(Code)(Java Doc)
public void removeDifferentFrom(Resource res)(Code)(Java Doc)
public void removeLabel(String label, String lang)(Code)(Java Doc)
public void removeLabel(Literal label)(Code)(Java Doc)
public void removeProperty(Property property, RDFNode value)(Code)(Java Doc)
protected void removePropertyValue(Property prop, String name, RDFNode value)(Code)(Java Doc)
public void removeRDFType(Resource cls)(Code)(Java Doc)
public void removeSameAs(Resource res)(Code)(Java Doc)
public void removeSeeAlso(Resource res)(Code)(Java Doc)
public void removeVersionInfo(String info)(Code)(Java Doc)
protected String selectLang(StmtIterator stmts, String lang)(Code)(Java Doc)
public void setComment(String comment, String lang)(Code)(Java Doc)
public void setDifferentFrom(Resource res)(Code)(Java Doc)
public void setIsDefinedBy(Resource res)(Code)(Java Doc)
public void setLabel(String label, String lang)(Code)(Java Doc)
public void setPropertyValue(Property property, RDFNode value)(Code)(Java Doc)
protected void setPropertyValue(Property p, String name, RDFNode value)(Code)(Java Doc)
public void setRDFType(Resource cls)(Code)(Java Doc)
public void setSameAs(Resource res)(Code)(Java Doc)
public void setSeeAlso(Resource res)(Code)(Java Doc)
public void setVersionInfo(String info)(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.