Class STRequests.Cls
Defined in: STRequests.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
STRequests.Cls.addClass(newClassName)
as for
addSubClass , but superClassName is set to owl:Thing |
<static> |
STRequests.Cls.addIndividual(clsName, instanceName)
adds a resource to the ontology, classified with type
clsName |
<static> |
STRequests.Cls.addSubClass(newClassName, superClassName)
adds a class to the ontology, with superclass
superClassName . |
<static> |
STRequests.Cls.addSuperCls(clsqname, superclsqname)
adds superclass
superclsqname to class clsqname . |
<static> |
STRequests.Cls.addType(clsqname, typeqname)
adds type
typeqname as the classyfing resource for resource clsqname |
<static> |
STRequests.Cls.getClassAndInstancesInfo(clsName, hasSubClasses)
gets the list of instances of a given class, with additional info like if these are explicit instances or
are computed through inference, etc.
|
<static> |
STRequests.Cls.getClassDescription(clsName, method)
gets full description of a class
|
<static> |
STRequests.Cls.getClassesInfoAsRootsForTree(instNum, clsqnames)
this method gets all information about a given class useful for setting it as the root of an ontology tree.
|
<static> |
STRequests.Cls.getClassTree(clsName)
gets the tree of all classes in the ontology.
|
<static> |
STRequests.Cls.getSubClasses(clsName, tree, instNum)
returns info about subclasses of a given class identified by
clsName . |
<static> |
STRequests.Cls.getSuperClasses(clsName)
returns the list of superclasses of class
clsName |
<static> |
STRequests.Cls.removeSuperCls(clsqname, superclsqname)
removes the superclass relationship between the two classes passed as arguments to this method.
|
<static> |
STRequests.Cls.removeType(clsqname, typeqname)
removes type
typeqname from class clsqname |
Method Detail
<static>
STRequests.Cls.addClass(newClassName)
- Parameters:
- newClassName
- Returns:
<static>
STRequests.Cls.addIndividual(clsName, instanceName)
- Parameters:
- clsName
- instanceName
- Returns:
<static>
STRequests.Cls.addSubClass(newClassName, superClassName)
adds a class to the ontology, with superclass
Defined in: SERVICE_Cls.js.
superClassName
. superClassName must identify
an existing class
Defined in: SERVICE_Cls.js.
- Parameters:
- newClassName
- superClassName
- Returns:
<static>
STRequests.Cls.addSuperCls(clsqname, superclsqname)
adds superclass
Defined in: SERVICE_Cls.js.
superclsqname
to class clsqname
. Both class need to be
existing classes in the ontology
Defined in: SERVICE_Cls.js.
- Parameters:
- clsqname
- superclsqname
- Returns:
<static>
STRequests.Cls.addType(clsqname, typeqname)
- Parameters:
- clsqname
- typeqname
- Returns:
<static>
STRequests.Cls.getClassAndInstancesInfo(clsName, hasSubClasses)
gets the list of instances of a given class, with additional info like if these are explicit instances or
are computed through inference, etc...
Defined in: SERVICE_Cls.js.
Defined in: SERVICE_Cls.js.
- Parameters:
- clsName
- hasSubClasses
- Returns:
<static>
STRequests.Cls.getClassDescription(clsName, method)
gets full description of a class
Defined in: SERVICE_Cls.js.
Defined in: SERVICE_Cls.js.
- Parameters:
- clsName
- method
- Returns:
<static>
STRequests.Cls.getClassesInfoAsRootsForTree(instNum, clsqnames)
this method gets all information about a given class useful for setting it as the root of an ontology tree.
argument
Defined in: SERVICE_Cls.js.
argument
instNum
may be true
or false
; if true, the number of
instances of that class is returned
Defined in: SERVICE_Cls.js.
- Parameters:
- instNum
- clsqnames
- Returns:
<static>
STRequests.Cls.getClassTree(clsName)
gets the tree of all classes in the ontology. Note that this method is no more used in Semantic Turkey,
since the tree is progressively built through the
Defined in: SERVICE_Cls.js.
getSubClasses
method, when the user
explicitly asks to explore subclasses in the class tree
Defined in: SERVICE_Cls.js.
- Parameters:
- clsName
- Returns:
<static>
STRequests.Cls.getSubClasses(clsName, tree, instNum)
- Parameters:
- clsName
- tree
- if this argument is
true
, then info about the presence of subclasses of each returned subclass is provided - instNum
- if this argument is
true
, then info about the number of instances of each returned subclass is provided
- Returns:
<static>
STRequests.Cls.getSuperClasses(clsName)
- Parameters:
- clsName
- Returns:
<static>
STRequests.Cls.removeSuperCls(clsqname, superclsqname)
removes the superclass relationship between the two classes passed as arguments to this method. This does
not delete any of the two classes
Defined in: SERVICE_Cls.js.
Defined in: SERVICE_Cls.js.
- Parameters:
- clsqname
- superclsqname
- Returns:
<static>
STRequests.Cls.removeType(clsqname, typeqname)
- Parameters:
- clsqname
- typeqname
- Returns: