4A Server -
2.0
|
Backbean for for page for uploading ontology. More...
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< TypeAttrOnto > | getOntoPropertyMayMove (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 |
Backbean for for page for uploading ontology.
Backbean for page for uploading ontology
Definition at line 90 of file UploadOntology.java.
|
private |
Add information about oneOf, unionOf and intersectionOf to comment
type | Information about type. |
setOfURI | This class is in collection. |
commentStr1 | 1. constant to comment. |
commentStr2 | 2. constant to comment. |
commentStr3 | 3. constant to comment. |
Definition at line 1574 of file UploadOntology.java.
|
private |
Add property to anonymous class. Property is marked only in restriction.
ontoAttrs | List with attributes of unknown types of annotations |
ontoAttrsDeleted | List with attributes of known types of annotations (types are known from restriction in anonymous class) |
data | Information about restriction. |
typeURI | Subject class URI. |
newTypesMap | Map with new (imported) types of annotations |
newTypesMapInfo | Map with informations about new (imported) types of annotations |
oModel | Ontology model |
userGroup | User group in which uploaded types will be shared |
Definition at line 1419 of file UploadOntology.java.
|
private |
Add list of super-classes to AnnotType object.
newTypes | List with new (imported) types of annotations |
newTypesMap | Map with new (imported) types of annotations |
userGroup | User group in which uploaded types will be shared |
type | AnnotType object. |
superClasses | List of super classes URI. This list is fill up in this function. |
Definition at line 1167 of file UploadOntology.java.
|
private |
This function is for OWLDatatypeProperty. It create set of superProperties URI.
propertyURI | Property URI. |
superProperties | Set of superProperties as OWLObjectPropertyExpression. |
superClasses | Set of superProperties as String (URI). |
Definition at line 831 of file UploadOntology.java.
|
private |
This function is for OWLObjectProperty. It create set of superProperties URI.
propertyURI | Property URI. |
superProperties | Set of superProperties as OWLObjectPropertyExpression. |
superClasses | Set of superProperties as String (URI). |
Definition at line 804 of file UploadOntology.java.
|
private |
Add information about superProperties to comment of property.
propertyURI | Property URI. |
comment | Origin comment. |
superClasses | Set of super classes URI. |
Definition at line 776 of file UploadOntology.java.
String cz.vutbr.fit.knot.annotations.web.UploadOntology.btnCancelAction | ( | ) |
Action listener for cancel button
Definition at line 3139 of file UploadOntology.java.
String cz.vutbr.fit.knot.annotations.web.UploadOntology.btnUploadAction | ( | ) |
Action listener for upload button
Definition at line 2673 of file UploadOntology.java.
|
private |
Create AnnotType object from OWL object (individual).
oModel | Ontology model |
oFactory | Ontology factory |
newTypes | List with new (imported) types of annotations |
newTypesMap | Map with new (imported) types of annotations |
newTypesMapInfo | Map with information about element in newTypesMap |
userGroup | User group in which uploaded types will be shared |
individual | Individual |
name | Individual name. |
anonymousIndividualCount | Count of parsed anonymous individuals. |
Definition at line 403 of file UploadOntology.java.
|
private |
Delete name in URI
originURI |
Definition at line 328 of file UploadOntology.java.
|
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#
originURI | Original URI |
isAnonymous | Output parameter - if anonymous, it will be set to true, false otherwise |
Definition at line 293 of file UploadOntology.java.
|
private |
Add property type information to property comment. For example, type can be "reflexive", "functional", etc.
originalComment | Original comment. |
action | If true, property is of selected type. |
objectCount | Count of property object. |
propertyName | Property name. |
oneComment | Text to comment, if property has one object. |
moreComment1 | First text to comment, if property has more objects. |
moreComment2 | Second text to comment, if property has more objects |
Definition at line 880 of file UploadOntology.java.
|
private |
Get comments from annotationSet (annotation of OWL Class).
oFactory | Ontology factory |
annotationSet | Set of annotation of OWL Class. |
Definition at line 961 of file UploadOntology.java.
String cz.vutbr.fit.knot.annotations.web.UploadOntology.getErrorMessage | ( | ) |
Gets 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
Definition at line 3168 of file UploadOntology.java.
int cz.vutbr.fit.knot.annotations.web.UploadOntology.getiMethod | ( | ) |
Gets selected import method
Definition at line 3249 of file UploadOntology.java.
String cz.vutbr.fit.knot.annotations.web.UploadOntology.getImportLang | ( | ) |
Gets selected import language
Definition at line 3267 of file UploadOntology.java.
|
private |
Get inverse ane equivalent properties of property. Recursive function. Property or expression argument should be null.
processedProperty | URI of properties, that has been already processed. |
property | Property object. |
expression | Expression object. |
oModel | Ontology model |
inversePropertyURI | Set of inverse properties URI |
equivalentPropertyURI | Set of equivalent properties URI |
Definition at line 1024 of file UploadOntology.java.
|
static |
Get class name from URI.
uri |
Definition at line 378 of file UploadOntology.java.
|
private |
Create new name for anonymous class.
info | AnnotTypeInfo object for class |
type | AnnotType object for class |
Definition at line 1459 of file UploadOntology.java.
Boolean cz.vutbr.fit.knot.annotations.web.UploadOntology.getOntologyUploaded | ( | ) |
Gets uploading indicator
Definition at line 3195 of file UploadOntology.java.
|
private |
Find properties in ontoAttrs, if found, remove from ontoAttrs and add to ontoAttrsDeleted This is for restriction in anonymous class.
propertyURI | Uri of property in restriction. |
ontoAttrs | List with attributes of unknown types of annotations |
ontoAttrsDeleted | List with attributes of known types of annotations (types are known from restriction in anonymous class) |
Definition at line 1368 of file UploadOntology.java.
|
private |
Convert datatype URI in ontology to datatype name, used in this server.
stringURI | Datatype URI in ontology. |
generateError | If true, then generate error, when URI is not corrected. |
isRequired | This function set this value to true, if attribute should be required. |
Definition at line 534 of file UploadOntology.java.
String cz.vutbr.fit.knot.annotations.web.UploadOntology.getSuccessMessage | ( | ) |
Gets 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
Definition at line 3231 of file UploadOntology.java.
UploadedFile cz.vutbr.fit.knot.annotations.web.UploadOntology.getUploadedFile | ( | ) |
Gets uploaded file
Definition at line 3150 of file UploadOntology.java.
|
private |
Add attribute with no object (no range) to AnnotType.
type | AnnotType object. |
prName | Property name. |
prUri | Property URI. |
comment | Property comment. |
Definition at line 505 of file UploadOntology.java.
|
private |
Prepare comment string to add another comment.
comment | Origin comment. |
Definition at line 855 of file UploadOntology.java.
|
private |
oModel | Ontology model |
property | Property object |
objectSetExpression | Set of object class expression |
subjectSetExpression | Set of subject class expression |
inversePropertiesStringSet | Set of inverse properties URI. This set is fill with data up in this function. |
Definition at line 1077 of file UploadOntology.java.
|
private |
Processing of ontology model - phase 1:
oModel | Ontology model |
oFactory | Ontology factory |
newTypes | List with new (imported) types of annotations |
newTypesMap | Map with new (imported) types of annotations |
userGroup | User group in which uploaded types will be shared |
newTypesMapInfo | Map with information about element in newTypesMap |
Definition at line 461 of file UploadOntology.java.
|
private |
Processing of ontology model - phase 2:
oModel | Ontology model |
oFactory | Ontology factory |
newTypes | List with new (imported) types of annotations |
newTypesMap | Map with new (imported) types of annotations |
newTypesMapInfo | Information about newNewTypesMap |
ontoAttrs | List with attributes of unknown types of annotations |
userGroup | User group in which uploaded types will be shared |
Definition at line 1673 of file UploadOntology.java.
|
private |
Get all class URI from OWLClassExpression. This function is used for get subject (domain) and object (range) from property.
oModel | Ontology model. |
exp | OWLClassExpression value. |
Definition at line 995 of file UploadOntology.java.
|
private |
Get oneOf and intersectionOf classes URI from OWLClassExpression.
exp | OWLClassExpression value. |
intersectionOfSet | This function add URI of class to this set. |
oneOfSet | This function add URI of class to this set. |
Definition at line 1545 of file UploadOntology.java.
|
private |
Add information about all types to property comment.
comment | Original comment. |
propertyReference | Reference to The OWL API structure for this property. |
objectCount | Count of property object. |
newPropertyName | Property name. |
oModel | Ontology model. |
Definition at line 906 of file UploadOntology.java.
|
private |
Add property to AnnotType object in newTypesMap.
prUri | Property URI in ontology. |
propertyReference | Reference to The OWL API structure for this property. |
comment | Comment. |
subjectSetClassURI | Set of subject URI. |
objectSetClassURI | Set of object URI. |
newTypesMap | Map with new (imported) types of annotations |
newTypesMapInfo | Information about newNewTypesMap |
ontoAttrs | List with attributes of unknown types of annotations |
userGroup | User group in which uploaded types will be shared |
superPropertiesStringSet | Set of super properties. |
inversePropertiesID | Set of inverse properties URI. |
oModel | Ontology model |
Definition at line 621 of file UploadOntology.java.
|
private |
Process property without subject
prUri | Property URI in ontology |
prName | Name of property to process |
comment | Comment of property to process |
objectSetClassURI | Set of object URI. |
userGroup | User group in which uploaded types will be shared |
ontoAttrs | List with attributes of unknown types of annotations |
newTypesMap | Map with new (imported) types of annotations |
isAnonymous | True if it is anonymous, false otherwise |
Definition at line 1255 of file UploadOntology.java.
|
private |
Process set of OWL Axiom and get subject, object and ancestor for rdf:property element.
objectSetClassURI | Set of object URI string. |
subjectSetClassURI | Set of subject URI string. |
ancestorSetClassURI | Set of ancestor URI string. |
allAxioms | Set of all axiom to selected property. |
Definition at line 1204 of file UploadOntology.java.
|
private |
Get super classes URI of OWL class.
oModel | Ontology model |
ontClass | Class object |
Definition at line 1136 of file UploadOntology.java.
|
private |
Get axiom of class about unionOf, oneOf and intersectionOf elements and add it to comment.
ontClass | OWL class |
type | Information about type |
oModel | Ontology model |
Definition at line 1602 of file UploadOntology.java.
|
staticprivate |
Query database for type of annotation
uri | URI of type of annotation |
em | Entity manager |
RuntimeException | If type of annotation was not found, throws exception |
Definition at line 3114 of file UploadOntology.java.
|
private |
Rename uri to acceptable format, if its class is annonymous
uri | Original uri |
isAnnonymous | Function set value of this object. |
Definition at line 353 of file UploadOntology.java.
|
private |
Rename uri to acceptable format, if its class is annonymous
uri | Original uri |
Definition at line 368 of file UploadOntology.java.
void cz.vutbr.fit.knot.annotations.web.UploadOntology.setErrorMessage | ( | String | errorMessage | ) |
Sets error message to be displayed in form
errorMessage | Error 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
iMethod | Selected 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
iLanguage | Selected import language |
Definition at line 3276 of file UploadOntology.java.
void cz.vutbr.fit.knot.annotations.web.UploadOntology.setOntologyUploaded | ( | Boolean | ontologyUploaded | ) |
Sets uploading indicator
ontologyUploaded | Uploading 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
successMessage | Success 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
uGroup | User 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
uploadedFile | Uploaded file |
Definition at line 3159 of file UploadOntology.java.
|
private |
Return argument with first upper character.
str | Original string. |
Definition at line 342 of file UploadOntology.java.
|
private |
Error message displayed in form
Definition at line 94 of file UploadOntology.java.
|
private |
File name
Definition at line 110 of file UploadOntology.java.
|
private |
Selected import method
Definition at line 118 of file UploadOntology.java.
|
private |
Import language
Definition at line 138 of file UploadOntology.java.
|
private |
Language number
Definition at line 142 of file UploadOntology.java.
|
static |
Import method 0: If type already exists, error.
Definition at line 126 of file UploadOntology.java.
|
static |
Import method 1: If type already exists, use it (do not create or update).
Definition at line 130 of file UploadOntology.java.
|
static |
Import method 0: If type already exists, update it.
Definition at line 134 of file UploadOntology.java.
|
private |
Uploading indicator
Definition at line 102 of file UploadOntology.java.
|
private |
Count of recursive call in inverse property processing.
Definition at line 122 of file UploadOntology.java.
|
private |
Success message displayed in form
Definition at line 98 of file UploadOntology.java.
|
private |
User group in which uploaded types will be shared
Definition at line 114 of file UploadOntology.java.
|
private |
Uploaded file
Definition at line 106 of file UploadOntology.java.