Class STRequests.Annotation
Defined in: STRequests.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
STRequests.Annotation.addAnnotation(urlPage, instanceQName, text, title)
|
<static> |
STRequests.Annotation.bookmarkPage(urlPage, title, topics)
|
<static> |
STRequests.Annotation.chkAnnotation(urlPage)
given page
urlPage , this method tells if the page contains annotations |
<static> |
STRequests.Annotation.chkBookmarks(urlPage)
given page
urlPage , this method tells if the page has topics |
<static> |
STRequests.Annotation.createAndAnnotate(clsQName, instanceQName, urlPage, title)
create and annotate an istance with drag n drop
|
<static> |
STRequests.Annotation.createFurtherAnnotation(instanceQName, text, urlPage, title)
given qname
instanceQName of an existing instance, it adds an annotation according to the
other arguments of the method |
<static> |
STRequests.Annotation.getAnnotatedContentResources(resource)
|
<static> |
STRequests.Annotation.getPageAnnotations(urlPage)
given page
urlPage , it returns all annotations previously taken on that page |
<static> |
STRequests.Annotation.relateAndAnnotate(instanceQName, propertyQName, objectQName, objectClsName, urlPage, title, lang, type, lexicalization)
this method is used to get information from web pages and use it to:
|
<static> |
STRequests.Annotation.relateAndAnnotateBindAnnot(instanceQName, propertyQName, objectQName, urlPage, title, lexicalization)
as for
relateAndAnnotate with some of its arguments set for binding annotated value to an
existing resource |
<static> |
STRequests.Annotation.relateAndAnnotateBindCreate(instanceQName, propertyQName, objectQName, objectClsName, urlPage, title, lang, type)
as for
relateAndAnnotate with some of its arguments set for creating an element
(resource/literal) from the annotated text |
Method Detail
<static>
STRequests.Annotation.addAnnotation(urlPage, instanceQName, text, title)
Defined in: SERVICE_Annotation.js.
- Parameters:
- urlPage
- instanceQName
- text
- title
- Returns:
<static>
STRequests.Annotation.bookmarkPage(urlPage, title, topics)
Defined in: SERVICE_Annotation.js.
- Parameters:
- urlPage
- title
- topics
- Returns:
<static>
STRequests.Annotation.chkAnnotation(urlPage)
given page
Defined in: SERVICE_Annotation.js.
urlPage
, this method tells if the page contains annotations
Defined in: SERVICE_Annotation.js.
- Parameters:
- urlPage
- Returns:
<static>
STRequests.Annotation.chkBookmarks(urlPage)
- Parameters:
- urlPage
- Returns:
<static>
STRequests.Annotation.createAndAnnotate(clsQName, instanceQName, urlPage, title)
create and annotate an istance with drag n drop
Defined in: SERVICE_Annotation.js.
Defined in: SERVICE_Annotation.js.
- Parameters:
- clsQName
- instanceQName
- urlPage
- title
- Returns:
<static>
STRequests.Annotation.createFurtherAnnotation(instanceQName, text, urlPage, title)
given qname
Defined in: SERVICE_Annotation.js.
instanceQName
of an existing instance, it adds an annotation according to the
other arguments of the method
Defined in: SERVICE_Annotation.js.
- Parameters:
- instanceQName
- text
- urlPage
- title
- Returns:
<static>
STRequests.Annotation.getAnnotatedContentResources(resource)
Defined in: SERVICE_Annotation.js.
- Parameters:
- resource
- Returns:
<static>
STRequests.Annotation.getPageAnnotations(urlPage)
given page
Defined in: SERVICE_Annotation.js.
urlPage
, it returns all annotations previously taken on that page
Defined in: SERVICE_Annotation.js.
- Parameters:
- urlPage
- Returns:
<static>
STRequests.Annotation.relateAndAnnotate(instanceQName, propertyQName, objectQName, objectClsName, urlPage, title, lang, type, lexicalization)
this method is used to get information from web pages and use it to:
Defined in: SERVICE_Annotation.js.
- relate existing objects in the ontology with new objects got from the web
- take the annotation related to the new object
Defined in: SERVICE_Annotation.js.
- Parameters:
- instanceQName
- the qname of the selected object which is related to the annotated one
- propertyQName
- the property which is used to qualify the selected object with new annotated information
- objectQName
- the annotated object (this may be an ontology object, or a literal)
- objectClsName
- if objectQName is a resource which is to be created, then this is the class associated that resource
- urlPage
- the url of the web page from which the annotation has been taken
- title
- the title of the web page from which the annotation has been taken
- lang
- the iso code for th language of the annotated text
- type
- used to qualify the nature of the annotated object; this argument is mandatory only if the
property specified by
propertyQName
is a standard property, otherwise the nature of the object is desumed from the nature of the property (resource for object properties and literal in other cases).
In case of a standard property, "literal" must be specified, otherwise a resource is added to the property - lexicalization
- Returns:
<static>
STRequests.Annotation.relateAndAnnotateBindAnnot(instanceQName, propertyQName, objectQName, urlPage, title, lexicalization)
as for
Defined in: SERVICE_Annotation.js.
relateAndAnnotate
with some of its arguments set for binding annotated value to an
existing resource
Defined in: SERVICE_Annotation.js.
- Parameters:
- instanceQName
- propertyQName
- objectQName
- urlPage
- title
- lexicalization
- Returns:
<static>
STRequests.Annotation.relateAndAnnotateBindCreate(instanceQName, propertyQName, objectQName, objectClsName, urlPage, title, lang, type)
as for
Defined in: SERVICE_Annotation.js.
relateAndAnnotate
with some of its arguments set for creating an element
(resource/literal) from the annotated text
Defined in: SERVICE_Annotation.js.
- Parameters:
- instanceQName
- propertyQName
- objectQName
- objectClsName
- urlPage
- title
- lang
- type
- Returns: