4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.web.UploadOntology Class Reference

Backbean for for page for uploading ontology. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.web.UploadOntology:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.web.UploadOntology:
Collaboration graph

Classes

class  AnnotTypeInfo
 Class for additional information about AnnotType. More...
 
class  BooleanHolder
 Class for boolean reference pass. More...
 
class  PropertyReference
 Class with reference to OWLObjectProperty or OWLDataProperty. More...
 

Public Member Functions

String btnUploadAction ()
 
String btnCancelAction ()
 
UploadedFile getUploadedFile ()
 
void setUploadedFile (UploadedFile uploadedFile)
 
String getFileName ()
 
String getErrorMessage ()
 
void setErrorMessage (String errorMessage)
 
Boolean getOntologyUploaded ()
 
void setOntologyUploaded (Boolean ontologyUploaded)
 
String getSuccessMessage ()
 
void setSuccessMessage (String successMessage)
 
String getuGroup ()
 
void setuGroup (String uGroup)
 
int getiMethod ()
 
void setiMethod (int iMethod)
 
String getImportLang ()
 
void setImportLang (String iLanguage)
 

Static Public Member Functions

static String getNameFromURI (String uri)
 

Static Public Attributes

static final int METHOD_0_ERROR = 0
 
static final int METHOD_1_USE = 1
 
static final int METHOD_2_UPDATE = 2
 

Private Member Functions

String deleteNameInURIIfAnonymousProperty (String originURI, BooleanHolder isAnonymous)
 
String deleteNameInURI (String originURI)
 
String upperFirstChar (String str)
 
String renameIfAnonymous (String uri, BooleanHolder isAnnonymous)
 
String renameIfAnonymous (String uri)
 
int createAnnotTypeFromIndividual (OWLOntology oModel, OWLDataFactory oFactory, ArrayList< AnnotType > newTypes, Map< String, AnnotType > newTypesMap, Map< String, AnnotTypeInfo > newTypesMapInfo, UserGroup userGroup, OWLIndividual individual, String name, int anonymousIndividualCount)
 
boolean processModelPhase1 (OWLOntology oModel, OWLDataFactory oFactory, ArrayList< AnnotType > newTypes, Map< String, AnnotType > newTypesMap, UserGroup userGroup, Map< String, AnnotTypeInfo > newTypesMapInfo)
 
void noRangePropertyProcess (AnnotType type, String prName, String prUri, String comment)
 
String getStringTypeFromOntologyURI (String stringURI, boolean generateError, BooleanHolder isRequired)
 
void processProperties (String prUri, PropertyReference propertyReference, String comment, HashSet< String > subjectSetClassURI, HashSet< String > objectSetClassURI, Map< String, AnnotType > newTypesMap, Map< String, AnnotTypeInfo > newTypesMapInfo, ArrayList< TypeAttrOnto > ontoAttrs, UserGroup userGroup, Set< String > superPropertiesStringSet, Set< String > inversePropertiesID, OWLOntology oModel)
 
String addSuperPropertiesToComment (String propertyURI, String comment, Set< String > superClasses)
 
void addSuperObjectPropertiesToSet (String propertyURI, Set< OWLObjectPropertyExpression > superProperties, Set< String > superClasses)
 
void addSuperDataPropertiesToSet (String propertyURI, Set< OWLDataPropertyExpression > superProperties, Set< String > superClasses)
 
String prepareCommentToAdding (String comment)
 
String editCommentBaseOnType (String originalComment, boolean action, int objectCount, String propertyName, String oneComment, String moreComment1, String moreComment2)
 
String procesSpecialPropertyType (String comment, PropertyReference propertyReference, int objectCount, String newPropertyName, OWLOntology oModel)
 
String getComments (OWLDataFactory oFactory, Set< OWLAnnotation > annotationSet)
 
HashSet< String > processOWLClassExpression (OWLOntology oModel, OWLClassExpression exp)
 
void getInverseEquivalentPropertyUri (Set< String > processedProperty, OWLObjectProperty property, OWLObjectPropertyExpression expression, OWLOntology oModel, Set< OWLObjectPropertyExpression > inversePropertyURI, Set< OWLObjectPropertyExpression > equivalentPropertyURI)
 
void processInverseProperty (OWLOntology oModel, OWLObjectProperty property, Set< OWLClassExpression > objectSetExpression, Set< OWLClassExpression > subjectSetExpression, Set< String > inversePropertiesStringSet)
 
LinkedList< String > processSuperClass (OWLOntology oModel, OWLClass ontClass)
 
void addSuperClassesToAnnotType (ArrayList< AnnotType > newTypes, Map< String, AnnotType > newTypesMap, UserGroup userGroup, AnnotType type, List< String > superClasses)
 
int processRdfPropertyAxioms (HashSet< String > objectSetClassURI, HashSet< String > subjectSetClassURI, HashSet< String > ancestorSetClassURI, Set< OWLAxiom > allAxioms)
 
void processPropertyWS (String prUri, String prName, String comment, HashSet< String > objectSetClassURI, UserGroup userGroup, ArrayList< TypeAttrOnto > ontoAttrs, Map< String, AnnotType > newTypesMap, boolean isAnonymous)
 
ArrayList< TypeAttrOntogetOntoPropertyMayMove (String propertyURI, ArrayList< TypeAttrOnto > ontoAttrs, ArrayList< TypeAttrOnto > ontoAttrsDeleted)
 
int addPropertyInAnonymousClassFromCardinalityRestriction (ArrayList< TypeAttrOnto > ontoAttrs, ArrayList< TypeAttrOnto > ontoAttrsDeleted, OWLVisitorForRestrictionData.CardinalityData data, String typeURI, Map< String, AnnotType > newTypesMap, Map< String, AnnotTypeInfo > newTypesMapInfo, OWLOntology oModel, UserGroup userGroup)
 
String getNewNameForAnonymousClass (AnnotTypeInfo info, AnnotType type)
 
void processOWLClassExpressionIntersectionOfOneOf (OWLClassExpression exp, HashSet< String > intersectionOfSet, HashSet< String > oneOfSet)
 
void addInfoAboutCollectionToComment (AnnotType type, HashSet< String > setOfURI, String commentStr1, String commentStr2, String commentStr3)
 
void processUnionOfOneOfIntersectionOf (OWLClass ontClass, AnnotType type, OWLOntology oModel)
 
boolean processModelPhase2 (OWLOntology oModel, OWLDataFactory oFactory, ArrayList< AnnotType > newTypes, Map< String, AnnotType > newTypesMap, Map< String, AnnotTypeInfo > newTypesMapInfo, ArrayList< TypeAttrOnto > ontoAttrs, UserGroup userGroup)
 

Static Private Member Functions

static AnnotType queryType (String uri, EntityManager em) throws RuntimeException
 

Private Attributes

String errorMessage = ""
 
String successMessage = ""
 
Boolean ontologyUploaded = false
 
UploadedFile uploadedFile = null
 
String fileName
 
String uGroup
 
int iMethod = 0
 
int recursiveInverseCount = 0
 
String importLang
 
int lNum
 

Detailed Description

Backbean for for page for uploading ontology.

Backbean for page for uploading ontology

Author
idytrych

Definition at line 90 of file UploadOntology.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.web.UploadOntology.addInfoAboutCollectionToComment ( AnnotType  type,
HashSet< String >  setOfURI,
String  commentStr1,
String  commentStr2,
String  commentStr3 
)
private

Add information about oneOf, unionOf and intersectionOf to comment

Parameters
typeInformation about type.
setOfURIThis class is in collection.
commentStr11. constant to comment.
commentStr22. constant to comment.
commentStr33. constant to comment.

Definition at line 1574 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.web.UploadOntology.addPropertyInAnonymousClassFromCardinalityRestriction ( ArrayList< TypeAttrOnto ontoAttrs,
ArrayList< TypeAttrOnto ontoAttrsDeleted,
OWLVisitorForRestrictionData.CardinalityData  data,
String  typeURI,
Map< String, AnnotType newTypesMap,
Map< String, AnnotTypeInfo newTypesMapInfo,
OWLOntology  oModel,
UserGroup  userGroup 
)
private

Add property to anonymous class. Property is marked only in restriction.

Parameters
ontoAttrsList with attributes of unknown types of annotations
ontoAttrsDeletedList with attributes of known types of annotations (types are known from restriction in anonymous class)
dataInformation about restriction.
typeURISubject class URI.
newTypesMapMap with new (imported) types of annotations
newTypesMapInfoMap with informations about new (imported) types of annotations
oModelOntology model
userGroupUser group in which uploaded types will be shared
Returns
Count of new atributes.

Definition at line 1419 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.addSuperClassesToAnnotType ( ArrayList< AnnotType newTypes,
Map< String, AnnotType newTypesMap,
UserGroup  userGroup,
AnnotType  type,
List< String >  superClasses 
)
private

Add list of super-classes to AnnotType object.

Parameters
newTypesList with new (imported) types of annotations
newTypesMapMap with new (imported) types of annotations
userGroupUser group in which uploaded types will be shared
typeAnnotType object.
superClassesList of super classes URI. This list is fill up in this function.

Definition at line 1167 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.addSuperDataPropertiesToSet ( String  propertyURI,
Set< OWLDataPropertyExpression >  superProperties,
Set< String >  superClasses 
)
private

This function is for OWLDatatypeProperty. It create set of superProperties URI.

Parameters
propertyURIProperty URI.
superPropertiesSet of superProperties as OWLObjectPropertyExpression.
superClassesSet of superProperties as String (URI).

Definition at line 831 of file UploadOntology.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.addSuperObjectPropertiesToSet ( String  propertyURI,
Set< OWLObjectPropertyExpression >  superProperties,
Set< String >  superClasses 
)
private

This function is for OWLObjectProperty. It create set of superProperties URI.

Parameters
propertyURIProperty URI.
superPropertiesSet of superProperties as OWLObjectPropertyExpression.
superClassesSet of superProperties as String (URI).

Definition at line 804 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.addSuperPropertiesToComment ( String  propertyURI,
String  comment,
Set< String >  superClasses 
)
private

Add information about superProperties to comment of property.

Parameters
propertyURIProperty URI.
commentOrigin comment.
superClassesSet of super classes URI.
Returns
New comment.

Definition at line 776 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.btnCancelAction ( )

Action listener for cancel button

Returns
Returns page outcome (null to stay here)

Definition at line 3139 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.btnUploadAction ( )

Action listener for upload button

Returns
Returns page outcome (identificator of next page or null to stay here)

Definition at line 2673 of file UploadOntology.java.

Here is the call graph for this function:

int cz.vutbr.fit.knot.annotations.web.UploadOntology.createAnnotTypeFromIndividual ( OWLOntology  oModel,
OWLDataFactory  oFactory,
ArrayList< AnnotType newTypes,
Map< String, AnnotType newTypesMap,
Map< String, AnnotTypeInfo newTypesMapInfo,
UserGroup  userGroup,
OWLIndividual  individual,
String  name,
int  anonymousIndividualCount 
)
private

Create AnnotType object from OWL object (individual).

Parameters
oModelOntology model
oFactoryOntology factory
newTypesList with new (imported) types of annotations
newTypesMapMap with new (imported) types of annotations
newTypesMapInfoMap with information about element in newTypesMap
userGroupUser group in which uploaded types will be shared
individualIndividual
nameIndividual name.
anonymousIndividualCountCount of parsed anonymous individuals.
Returns
New count of parsed anonymous individuals.

Definition at line 403 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.deleteNameInURI ( String  originURI)
private

Delete name in URI

Parameters
originURI
Returns
Uri without name

Definition at line 328 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.deleteNameInURIIfAnonymousProperty ( String  originURI,
BooleanHolder  isAnonymous 
)
private

Delete name in URI if anonymous property. Old anonymous uri type example: http://www.co-ode.org/ontologies/pizza/pizza2.owl#genid4 to http://www.co-ode.org/ontologies/pizza/pizza2.owl#

Parameters
originURIOriginal URI
isAnonymousOutput parameter - if anonymous, it will be set to true, false otherwise
Returns
Returns URI without name

Definition at line 293 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.editCommentBaseOnType ( String  originalComment,
boolean  action,
int  objectCount,
String  propertyName,
String  oneComment,
String  moreComment1,
String  moreComment2 
)
private

Add property type information to property comment. For example, type can be "reflexive", "functional", etc.

Parameters
originalCommentOriginal comment.
actionIf true, property is of selected type.
objectCountCount of property object.
propertyNameProperty name.
oneCommentText to comment, if property has one object.
moreComment1First text to comment, if property has more objects.
moreComment2Second text to comment, if property has more objects
Returns
New comment.

Definition at line 880 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getComments ( OWLDataFactory  oFactory,
Set< OWLAnnotation >  annotationSet 
)
private

Get comments from annotationSet (annotation of OWL Class).

Parameters
oFactoryOntology factory
annotationSetSet of annotation of OWL Class.
Returns
Comment.

Definition at line 961 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getErrorMessage ( )

Gets error message displayed in form

Returns
Returns error message displayed in form

Definition at line 3177 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getFileName ( )

Gets uploaded file name

Returns
Returns uploaded file name

Definition at line 3168 of file UploadOntology.java.

int cz.vutbr.fit.knot.annotations.web.UploadOntology.getiMethod ( )

Gets selected import method

Returns
Returns selected import method

Definition at line 3249 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getImportLang ( )

Gets selected import language

Returns
Returns selected import language

Definition at line 3267 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.getInverseEquivalentPropertyUri ( Set< String >  processedProperty,
OWLObjectProperty  property,
OWLObjectPropertyExpression  expression,
OWLOntology  oModel,
Set< OWLObjectPropertyExpression >  inversePropertyURI,
Set< OWLObjectPropertyExpression >  equivalentPropertyURI 
)
private

Get inverse ane equivalent properties of property. Recursive function. Property or expression argument should be null.

Parameters
processedPropertyURI of properties, that has been already processed.
propertyProperty object.
expressionExpression object.
oModelOntology model
inversePropertyURISet of inverse properties URI
equivalentPropertyURISet of equivalent properties URI

Definition at line 1024 of file UploadOntology.java.

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.web.UploadOntology.getNameFromURI ( String  uri)
static

Get class name from URI.

Parameters
uri
Returns
Name

Definition at line 378 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getNewNameForAnonymousClass ( AnnotTypeInfo  info,
AnnotType  type 
)
private

Create new name for anonymous class.

Parameters
infoAnnotTypeInfo object for class
typeAnnotType object for class
Returns
New name

Definition at line 1459 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

Boolean cz.vutbr.fit.knot.annotations.web.UploadOntology.getOntologyUploaded ( )

Gets uploading indicator

Returns
Returns uploading indicator

Definition at line 3195 of file UploadOntology.java.

ArrayList<TypeAttrOnto> cz.vutbr.fit.knot.annotations.web.UploadOntology.getOntoPropertyMayMove ( String  propertyURI,
ArrayList< TypeAttrOnto ontoAttrs,
ArrayList< TypeAttrOnto ontoAttrsDeleted 
)
private

Find properties in ontoAttrs, if found, remove from ontoAttrs and add to ontoAttrsDeleted This is for restriction in anonymous class.

Parameters
propertyURIUri of property in restriction.
ontoAttrsList with attributes of unknown types of annotations
ontoAttrsDeletedList with attributes of known types of annotations (types are known from restriction in anonymous class)
Returns
If found, all properties in set, else null.

Definition at line 1368 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getStringTypeFromOntologyURI ( String  stringURI,
boolean  generateError,
BooleanHolder  isRequired 
)
private

Convert datatype URI in ontology to datatype name, used in this server.

Parameters
stringURIDatatype URI in ontology.
generateErrorIf true, then generate error, when URI is not corrected.
isRequiredThis function set this value to true, if attribute should be required.
Returns
Datatype name in server.

Definition at line 534 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getSuccessMessage ( )

Gets success message displayed in form

Returns
Returns success message displayed in form

Definition at line 3213 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.getuGroup ( )

Gets user group in which uploaded types will be shared

Returns
Returns user group in which uploaded types will be shared

Definition at line 3231 of file UploadOntology.java.

UploadedFile cz.vutbr.fit.knot.annotations.web.UploadOntology.getUploadedFile ( )

Gets uploaded file

Returns
Returns uploaded file

Definition at line 3150 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.noRangePropertyProcess ( AnnotType  type,
String  prName,
String  prUri,
String  comment 
)
private

Add attribute with no object (no range) to AnnotType.

Parameters
typeAnnotType object.
prNameProperty name.
prUriProperty URI.
commentProperty comment.

Definition at line 505 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.prepareCommentToAdding ( String  comment)
private

Prepare comment string to add another comment.

Parameters
commentOrigin comment.
Returns
New comment.

Definition at line 855 of file UploadOntology.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.processInverseProperty ( OWLOntology  oModel,
OWLObjectProperty  property,
Set< OWLClassExpression >  objectSetExpression,
Set< OWLClassExpression >  subjectSetExpression,
Set< String >  inversePropertiesStringSet 
)
private
Parameters
oModelOntology model
propertyProperty object
objectSetExpressionSet of object class expression
subjectSetExpressionSet of subject class expression
inversePropertiesStringSetSet of inverse properties URI. This set is fill with data up in this function.

Definition at line 1077 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

boolean cz.vutbr.fit.knot.annotations.web.UploadOntology.processModelPhase1 ( OWLOntology  oModel,
OWLDataFactory  oFactory,
ArrayList< AnnotType newTypes,
Map< String, AnnotType newTypesMap,
UserGroup  userGroup,
Map< String, AnnotTypeInfo newTypesMapInfo 
)
private

Processing of ontology model - phase 1:

  • get classes and create types of annotations
Parameters
oModelOntology model
oFactoryOntology factory
newTypesList with new (imported) types of annotations
newTypesMapMap with new (imported) types of annotations
userGroupUser group in which uploaded types will be shared
newTypesMapInfoMap with information about element in newTypesMap
Returns
If error occurred, returns true, false otherwise

Definition at line 461 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

boolean cz.vutbr.fit.knot.annotations.web.UploadOntology.processModelPhase2 ( OWLOntology  oModel,
OWLDataFactory  oFactory,
ArrayList< AnnotType newTypes,
Map< String, AnnotType newTypesMap,
Map< String, AnnotTypeInfo newTypesMapInfo,
ArrayList< TypeAttrOnto ontoAttrs,
UserGroup  userGroup 
)
private

Processing of ontology model - phase 2:

  • get properties and create attributes of types of annotations
  • assign ancestors and primary ancestors to types of annotations
Parameters
oModelOntology model
oFactoryOntology factory
newTypesList with new (imported) types of annotations
newTypesMapMap with new (imported) types of annotations
newTypesMapInfoInformation about newNewTypesMap
ontoAttrsList with attributes of unknown types of annotations
userGroupUser group in which uploaded types will be shared
Returns
If error occurred, returns true, false otherwise

Definition at line 1673 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

HashSet<String> cz.vutbr.fit.knot.annotations.web.UploadOntology.processOWLClassExpression ( OWLOntology  oModel,
OWLClassExpression  exp 
)
private

Get all class URI from OWLClassExpression. This function is used for get subject (domain) and object (range) from property.

Parameters
oModelOntology model.
expOWLClassExpression value.
Returns
Set of class URI

Definition at line 995 of file UploadOntology.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.processOWLClassExpressionIntersectionOfOneOf ( OWLClassExpression  exp,
HashSet< String >  intersectionOfSet,
HashSet< String >  oneOfSet 
)
private

Get oneOf and intersectionOf classes URI from OWLClassExpression.

Parameters
expOWLClassExpression value.
intersectionOfSetThis function add URI of class to this set.
oneOfSetThis function add URI of class to this set.

Definition at line 1545 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.procesSpecialPropertyType ( String  comment,
PropertyReference  propertyReference,
int  objectCount,
String  newPropertyName,
OWLOntology  oModel 
)
private

Add information about all types to property comment.

Parameters
commentOriginal comment.
propertyReferenceReference to The OWL API structure for this property.
objectCountCount of property object.
newPropertyNameProperty name.
oModelOntology model.
Returns
New comment.

Definition at line 906 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.processProperties ( String  prUri,
PropertyReference  propertyReference,
String  comment,
HashSet< String >  subjectSetClassURI,
HashSet< String >  objectSetClassURI,
Map< String, AnnotType newTypesMap,
Map< String, AnnotTypeInfo newTypesMapInfo,
ArrayList< TypeAttrOnto ontoAttrs,
UserGroup  userGroup,
Set< String >  superPropertiesStringSet,
Set< String >  inversePropertiesID,
OWLOntology  oModel 
)
private

Add property to AnnotType object in newTypesMap.

Parameters
prUriProperty URI in ontology.
propertyReferenceReference to The OWL API structure for this property.
commentComment.
subjectSetClassURISet of subject URI.
objectSetClassURISet of object URI.
newTypesMapMap with new (imported) types of annotations
newTypesMapInfoInformation about newNewTypesMap
ontoAttrsList with attributes of unknown types of annotations
userGroupUser group in which uploaded types will be shared
superPropertiesStringSetSet of super properties.
inversePropertiesIDSet of inverse properties URI.
oModelOntology model

Definition at line 621 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.processPropertyWS ( String  prUri,
String  prName,
String  comment,
HashSet< String >  objectSetClassURI,
UserGroup  userGroup,
ArrayList< TypeAttrOnto ontoAttrs,
Map< String, AnnotType newTypesMap,
boolean  isAnonymous 
)
private

Process property without subject

  • creates attribute of unknown type of annotation
Parameters
prUriProperty URI in ontology
prNameName of property to process
commentComment of property to process
objectSetClassURISet of object URI.
userGroupUser group in which uploaded types will be shared
ontoAttrsList with attributes of unknown types of annotations
newTypesMapMap with new (imported) types of annotations
isAnonymousTrue if it is anonymous, false otherwise

Definition at line 1255 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.web.UploadOntology.processRdfPropertyAxioms ( HashSet< String >  objectSetClassURI,
HashSet< String >  subjectSetClassURI,
HashSet< String >  ancestorSetClassURI,
Set< OWLAxiom >  allAxioms 
)
private

Process set of OWL Axiom and get subject, object and ancestor for rdf:property element.

Parameters
objectSetClassURISet of object URI string.
subjectSetClassURISet of subject URI string.
ancestorSetClassURISet of ancestor URI string.
allAxiomsSet of all axiom to selected property.
Returns
Count of unsupported axioms.

Definition at line 1204 of file UploadOntology.java.

Here is the caller graph for this function:

LinkedList<String> cz.vutbr.fit.knot.annotations.web.UploadOntology.processSuperClass ( OWLOntology  oModel,
OWLClass  ontClass 
)
private

Get super classes URI of OWL class.

Parameters
oModelOntology model
ontClassClass object
Returns
List of super classes URI.

Definition at line 1136 of file UploadOntology.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.processUnionOfOneOfIntersectionOf ( OWLClass  ontClass,
AnnotType  type,
OWLOntology  oModel 
)
private

Get axiom of class about unionOf, oneOf and intersectionOf elements and add it to comment.

Parameters
ontClassOWL class
typeInformation about type
oModelOntology model

Definition at line 1602 of file UploadOntology.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static AnnotType cz.vutbr.fit.knot.annotations.web.UploadOntology.queryType ( String  uri,
EntityManager  em 
) throws RuntimeException
staticprivate

Query database for type of annotation

Parameters
uriURI of type of annotation
emEntity manager
Returns
Returns type of annotation with given URI
Exceptions
RuntimeExceptionIf type of annotation was not found, throws exception

Definition at line 3114 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.renameIfAnonymous ( String  uri,
BooleanHolder  isAnnonymous 
)
private

Rename uri to acceptable format, if its class is annonymous

Parameters
uriOriginal uri
isAnnonymousFunction set value of this object.
Returns
Corrected uri

Definition at line 353 of file UploadOntology.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.web.UploadOntology.renameIfAnonymous ( String  uri)
private

Rename uri to acceptable format, if its class is annonymous

Parameters
uriOriginal uri
Returns
Corrected uri

Definition at line 368 of file UploadOntology.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setErrorMessage ( String  errorMessage)

Sets error message to be displayed in form

Parameters
errorMessageError message to be displayed in form

Definition at line 3186 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setiMethod ( int  iMethod)

Sets selected import method

Parameters
iMethodSelected import method

Definition at line 3258 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setImportLang ( String  iLanguage)

Sets selected import language

Parameters
iLanguageSelected import language

Definition at line 3276 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setOntologyUploaded ( Boolean  ontologyUploaded)

Sets uploading indicator

Parameters
ontologyUploadedUploading indicator

Definition at line 3204 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setSuccessMessage ( String  successMessage)

Sets success message to be displayed in form

Parameters
successMessageSuccess message to be displayed in form

Definition at line 3222 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setuGroup ( String  uGroup)

Sets user group in which uploaded types will be shared

Parameters
uGroupUser group in which uploaded types will be shared

Definition at line 3240 of file UploadOntology.java.

void cz.vutbr.fit.knot.annotations.web.UploadOntology.setUploadedFile ( UploadedFile  uploadedFile)

Sets uploaded file

Parameters
uploadedFileUploaded file

Definition at line 3159 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.upperFirstChar ( String  str)
private

Return argument with first upper character.

Parameters
strOriginal string.
Returns
Argument with first upper character.

Definition at line 342 of file UploadOntology.java.

Here is the caller graph for this function:

Member Data Documentation

String cz.vutbr.fit.knot.annotations.web.UploadOntology.errorMessage = ""
private

Error message displayed in form

Definition at line 94 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.fileName
private

File name

Definition at line 110 of file UploadOntology.java.

int cz.vutbr.fit.knot.annotations.web.UploadOntology.iMethod = 0
private

Selected import method

Definition at line 118 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.importLang
private

Import language

Definition at line 138 of file UploadOntology.java.

int cz.vutbr.fit.knot.annotations.web.UploadOntology.lNum
private

Language number

Definition at line 142 of file UploadOntology.java.

final int cz.vutbr.fit.knot.annotations.web.UploadOntology.METHOD_0_ERROR = 0
static

Import method 0: If type already exists, error.

Definition at line 126 of file UploadOntology.java.

final int cz.vutbr.fit.knot.annotations.web.UploadOntology.METHOD_1_USE = 1
static

Import method 1: If type already exists, use it (do not create or update).

Definition at line 130 of file UploadOntology.java.

final int cz.vutbr.fit.knot.annotations.web.UploadOntology.METHOD_2_UPDATE = 2
static

Import method 0: If type already exists, update it.

Definition at line 134 of file UploadOntology.java.

Boolean cz.vutbr.fit.knot.annotations.web.UploadOntology.ontologyUploaded = false
private

Uploading indicator

Definition at line 102 of file UploadOntology.java.

int cz.vutbr.fit.knot.annotations.web.UploadOntology.recursiveInverseCount = 0
private

Count of recursive call in inverse property processing.

Definition at line 122 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.successMessage = ""
private

Success message displayed in form

Definition at line 98 of file UploadOntology.java.

String cz.vutbr.fit.knot.annotations.web.UploadOntology.uGroup
private

User group in which uploaded types will be shared

Definition at line 114 of file UploadOntology.java.

UploadedFile cz.vutbr.fit.knot.annotations.web.UploadOntology.uploadedFile = null
private

Uploaded file

Definition at line 106 of file UploadOntology.java.


The documentation for this class was generated from the following file: