public class EcConcept extends Concept
myType, semanticRelation, topConceptOf| Constructor and Description |
|---|
EcConcept() |
| Modifier and Type | Method and Description |
|---|---|
static void |
get(String id,
org.stjs.javascript.functions.Callback1<EcConcept> success,
org.stjs.javascript.functions.Callback1<String> failure)
Retrieves a concept from it's server asynchronously
|
static EcConcept |
getBlocking(String id)
Retrieves a concept from it's server synchronously, the call
blocks until it is successful or an error occurs
|
static void |
search(EcRepository repo,
String query,
org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcConcept>> success,
org.stjs.javascript.functions.Callback1<String> failure,
Object paramObj)
Searches a repository for competencies that match the search query
|
addOwner, addReader, asNQuads, asRdfXml, assignId, assignIdAndVersion, asTurtle, canEdit, canEditAny, generateId, generateShortId, getDottedType, getGuid, getSearchStringByType, getServerBaseUrl, getTimestamp, hasOwner, hasReader, invalid, isId, removeOwner, removeReader, shortId, signWith, toSignableJson, trimVersionFromUrl, updateTimestamp, verify, veryShortIdpublic static void get(String id, org.stjs.javascript.functions.Callback1<EcConcept> success, org.stjs.javascript.functions.Callback1<String> failure)
{String} - id
ID of the concept to retrieve from the server{Callback1} - success
Callback triggered after retrieving the concept,
returns the concept retrieved{Callback1} - failure
Callback triggered if error retrieving conceptpublic static EcConcept getBlocking(String id)
{String} - id
ID of the concept to retrievepublic static void search(EcRepository repo, String query, org.stjs.javascript.functions.Callback1<org.stjs.javascript.Array<EcConcept>> success, org.stjs.javascript.functions.Callback1<String> failure, Object paramObj)
{EcRepository} - repo
Repository to search using the query{String} - query
Query string to pass to the search web service{Callback1> - success
Callback triggered after completing the search, returns the results{Callback1} - failure
Callback triggered if error searching{Object} - paramObj
Parameter object for searchCopyright © 2018 Eduworks Corporation. All rights reserved.