Protected Attributes | |
| $content = null | |
| $firstKBElement = "Tell" | |
| $actual_kb = null | |
| $current_prefixes = [] | |
| $in_tell = false | |
| $in_queries = false | |
| $default_header | |
| $default_prefixes | |
| $owllink_text = "" | |
| __construct | ( | ) |
| begin_allvaluesfrom | ( | ) |
| begin_allvaluesfrom_dataproperty | ( | ) |
| begin_complementof | ( | ) |
| begin_complementof_dataproperty | ( | ) |
| begin_datapropertydomain | ( | ) |
| begin_datapropertyrange | ( | ) |
| begin_disjointclasses | ( | ) |
| begin_equivalentclasses | ( | ) |
| begin_intersectionof | ( | ) |
| begin_intersectionof_dataproperty | ( | ) |
| begin_inverseof | ( | ) |
| begin_maxcardinality | ( | $cardinality | ) |
| begin_maxcardinality_dataproperty | ( | $cardinality | ) |
| begin_mincardinality | ( | $cardinality | ) |
| begin_mincardinality_dataproperty | ( | $cardinality | ) |
| begin_objectpropertydomain | ( | ) |
| begin_objectpropertyrange | ( | ) |
| begin_somevaluesfrom | ( | ) |
| begin_somevaluesfrom_dataproperty | ( | ) |
| begin_subclassof | ( | ) |
| begin_unionof | ( | ) |
| begin_unionof_dataproperty | ( | ) |
|
protected |
| end_allvaluesfrom | ( | ) |
| end_allvaluesfrom_dataproperty | ( | ) |
| end_complementof | ( | ) |
| end_complementof_dataproperty | ( | ) |
| end_datapropertydomain | ( | ) |
| end_datapropertyrange | ( | ) |
| end_disjointclasses | ( | ) |
| end_document | ( | ) |
| end_equivalentclasses | ( | ) |
| end_intersectionof | ( | ) |
| end_intersectionof_dataproperty | ( | ) |
| end_inverseof | ( | ) |
| end_maxcardinality | ( | ) |
| end_maxcardinality_dataproperty | ( | ) |
| end_mincardinality | ( | ) |
| end_mincardinality_dataproperty | ( | ) |
| end_objectpropertydomain | ( | ) |
| end_objectpropertyrange | ( | ) |
| end_somevaluesfrom | ( | ) |
| end_somevaluesfrom_dataproperty | ( | ) |
| end_subclassof | ( | ) |
| end_tell | ( | ) |
| end_unionof | ( | ) |
| end_unionof_dataproperty | ( | ) |
| get_firstElementKB | ( | ) |
| get_in_tell | ( | ) |
| insert_class | ( | $name, | |
$is_abbreviated = null |
|||
| ) |
Add a class DL element.
Abbreviated IRI's are recognized automatically by name_has_namespace() function. var_dump($prefixes);
| name | String the name or IRI of the new concept. |
| is_abbreviated | Boolean (Optional) force that the given IRI is or is not an abreviated like owl:class. |
| insert_class_declaration | ( | $class | ) |
| insert_create_kb | ( | $ontologyIRI, | |
$prefixes = [] |
|||
| ) |
Insert a "CreateKB" OWLlink primitive. After that, set the actual_kb to the given URI.
| $ontologyIRI | An IRI for the current ontology. The name or the URI of the KB. |
| $prefixes | An Array of namespaces and IRIs for the ontology. |
| insert_dataproperty | ( | $name, | |
$is_abbreviated = null |
|||
| ) |
| insert_dataproperty_declaration | ( | $dprop | ) |
| insert_datatype | ( | $name, | |
$is_abbreviated = null |
|||
| ) |
| insert_get_all_classes_query | ( | ) |
Insert a query denominated GetAllClasses for the current kb.
OWLlink query: <GetAllClasses kb="http://localhost/kb1">
| insert_get_all_object_properties_query | ( | ) |
Insert a query denominated GetAllObjectProperties for the current kb.
OWLlink query: <GetAllObjectProperties kb="http://localhost/kb1">
| insert_get_disjointClasses_query | ( | $classname | ) |
Insert a query denominated GetDisjointClasses for all the classes in the array.
OWLlink query:
<GetDisjointClasses kb=""> <owl:Class IRI="Person"/> </GetDisjointClasses>
| $classname | an Object Type. |
| insert_get_equivalentClasses_query | ( | $classname | ) |
Insert a query denominated GetEquivalentClasses for all the classes in the array.
OWLlink query:
<GetEquivalentClasses kb="http://localhost/kb1"> <owl:Class IRI="Person"/> </GetEquivalentClasses>
| $array | An array of Strings with classnames. |
| insert_get_subClasses_query | ( | $classname | ) |
Insert a query denominated GetSubClasses for all the classes in the array.
OWLlink query:
<GetSubClasses kb="http://localhost/kb1"> <owl:Class IRI="PhoneCall"/> </GetSubClasses>
| $classname | an Object Type. |
| insert_get_superClasses_query | ( | $classname | ) |
Insert a query denominated GetSuperClasses for all the classes in the array.
OWLlink query:
<GetSuperClasses kb="http://localhost/kb1"> <owl:Class IRI="PhoneCall"/> </GetSuperClasses>
| $classname | an Object Type. |
| insert_getPrefixes | ( | ) |
| insert_getSubClassHierarchy_query | ( | ) |
Insert a query denominated GetSubClassHierarchy for the current kb.
OWLlink query: <GetSubClassHierarchy kb="http://localhost/kb1">
| insert_getSubObjectPropertyHierarchy_query | ( | ) |
Insert a query denominated GetObjectPropertiesHierarchy for the current kb.
OWLlink query: <GetSubObjectPropertyHierarchy kb="http://localhost/kb1">
| insert_isEntailed_query | ( | $array | ) |
Insert an ASK query denominated IsEntailed for all the classes in the array.
OWLlink query:
<IsEntailed kb="http://localhost/kb1"> <owl:EquivalentClasses> <owl:Class IRI="PhoneCall"/> <owl:Class IRI="MobileCall"/> </owl:EquivalentClasses> </IsEntailed>
| $array | An array of Strings with classnames. |
| insert_isEntailedDirectDisjointClasses_query | ( | $array | ) |
Insert an ASK query denominated IsEntailedDirect for all the classes in the array.
OWLlink query:
<IsEntailedDirect kb="http://localhost/kb1"> <owl:DisjointClasses> <owl:Class IRI="PhoneCall"/> <owl:Class IRI="MobileCall"/> </owl:DisjointClasses> </IsEntailedDirect>
| $array | An array of Strings with classnames. |
| insert_isEntailedDirectSubClasses_query | ( | $array | ) |
Insert an ASK query denominated IsEntailedDirect for all the classes in the array.
OWLlink query:
<IsEntailedDirect kb="http://localhost/kb1"> <owl:SubClassOf> <owl:Class IRI="PhoneCall"/> <owl:Class IRI="MobileCall"/> </owl:SubClassOf> </IsEntailedDirect>
| $array | An array of Strings with classnames. |
| insert_objectproperty | ( | $name, | |
$is_abbreviated = null |
|||
| ) |
| insert_objectproperty_declaration | ( | $objprop | ) |
| insert_owllink | ( | $text | ) |
| insert_prefix | ( | $prefixes | ) |
| insert_release_kb | ( | $uri = null | ) |
Insert a "ReleaseKB" OWLlink primitive.
If the URI corresponds to the actual_kb one, set it to null.
| uri | String (Optional). The name or the URI of the database to release. If not given, use the actual_kb one. |
| insert_request | ( | $ontologyIRI, | |
$reqiris = [] |
|||
| ) |
| insert_satisfiable | ( | ) |
| insert_satisfiable_class | ( | $classname | ) |
| insert_satisfiable_dataProperty | ( | $dpname | ) |
Insert a query denominated IsDataPropertySatisfiable for all the data properties in the array.
OWLlink query:
<IsDataPropertySatisfiable kb=""> <owl:DataProperty IRI="r2"/> </IsDataPropertySatisfiable>
| $array | An array of Strings with data property names. |
| insert_satisfiable_objectProperty | ( | $opname | ) |
Insert a query denominated IsObjectPropertySatisfiable for all the object properties in the array.
OWLlink query:
<IsObjectPropertySatisfiable kb=""> <owl:ObjectProperty IRI="r2"/> </IsObjectPropertySatisfiable>
| $array | An array of Strings with objectspropnames. |
| insert_startdocument | ( | ) |
| insert_subclassof | ( | $child_class, | |
| $father_class, | |||
$child_abbrev = false, |
|||
$father_abbrev = false |
|||
| ) |
Insert a DL subclass-of operator.
Abbreviated IRIs are recognized automatically.
| child_class | A String with the child's name class. |
| father_class | Same as $child_class parameter but for the $father_class. |
| child_abbrev | If true, force the abbreviated IRI for the child class; if false, force the (not abbreviated) IRI; if null check it automatically. |
| father_abbrev | same as $child_abbrev but for the $father_class. |
| insert_subdatapropertyof | ( | $child_dp, | |
| $father_dp | |||
| ) |
Insert a DL subdataproperty-of operator.
Abbreviated IRIs are recognized automatically.
| child_class | A String with the child's name class. |
| father_class | Same as $child_class parameter but for the $father_class. |
| child_abbrev | If true, force the abbreviated IRI for the child class; if false, force the (not abbreviated) IRI; if null check it automatically. |
| father_abbrev | same as $child_abbrev but for the $father_class. |
| insert_subobjectpropertyof | ( | $child_op, | |
| $father_op | |||
| ) |
Insert a DL subobjectproperty-of operator.
Abbreviated IRIs are recognized automatically.
| child_class | A String with the child's name class. |
| father_class | Same as $child_class parameter but for the $father_class. |
| child_abbrev | If true, force the abbreviated IRI for the child class; if false, force the (not abbreviated) IRI; if null check it automatically. |
| father_abbrev | same as $child_abbrev but for the $father_class. |
|
protected |
Check if class names are full-expanded (i.e.: "http://crowd.fi.uncoma.edu.ar/Class").
| name | a String with the IRI. |
|
protected |
Check if this IRI has a namespace, (i.e.: is an abbreviated IRI).
Like in "owl:Thing" which its namespace is "owl" here.
| name | a String with the IRI. |
|
protected |
|
protected |
This function returns a short name for a OWL 2 entity removing prefix expansions
| set_abbreviatedIRIs | ( | $boolean | ) |
| set_actual_kb | ( | $kb_uri | ) |
| set_in_tell | ( | $bool = false | ) |
| start_document | ( | $ontologyIRI = [], |
|
$req = [] |
|||
| ) |
Abbreviation of:
| start_tell | ( | ) |
Open e Tell query.
The KB is setted according to actual_kb.
Example:
| to_string | ( | ) |
|
protected |
The current KB URI as . of String.
This can be changed by creating a new KB (see insert_create_kb()) or by using the setter.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
I'm inserting Tell's queries?
|
protected |
1.8.8