static
Class LinkData
static
String
getFileContent
(
workId
,
filename
,
format
,
callbackFn
)
workId
<String>
Id of rdf work
filename
<String>
Name of rdf work file
format
<String>
Type of rdf work file. (JSON, TSV, TTL or TRUTLE, XML)
callbackFn
<String>
Name of the callback function
String
static
Array
getFiles
(
workId
,
callback
)
workId
<String>
Id of rdf work. (optional)
callback
<Function>
the callback function ref
Array
[<fileName>,<fileName>...]
[{<workId>,[<fileName>,<fileName>...]},{.....}...]
static
Array
getFilesByTag
(
workId
,
tagName
,
callback
)
workId
<String>
Id of rdf work. (optional)
tagName
<String>
name of the tag.
callback
<Function>
the callback function ref
Array
[<fileName>,<fileName>...]
[{<workId>,[<fileName>,<fileName>...]},{.....}...]
static
Array
getObjects
(
workId
,
filename
,
subject
,
property
,
callback
)
workId
<String>
Id of rdf work
filename
<String>
Name of rdf work file
subject
<String>
Url of subject
property
<String>
Url of property
callback
<Function>
the callback function ref
Array
[<obejctValue>,<obejctValue>,...]
static
Array
getProperties
(
workId
,
filename
,
callback
,
index
)
workId
<String>
Id of rdf work
filename
<String>
Name of rdf work file
callback
<Function>
the callback function ref
index
<Object>
start(default 1) and end(default -1) position values. (Ex: {start:1, end:10})
Array
[<property>,<property>,...]
static
String
getSubjectName
(
)
http://linkdata.org/resource/rdf1s1243i#ABC
http://...?id=ABC&subject=http://linkdata.org/resource/rdf1s1243i#ABC
ABC
String
static
Array
getSubjects
(
workId
,
filename
,
callback
,
index
)
workId
<String>
Id of rdf work
filename
<String>
Name of rdf work file
callback
<Function>
the callback function ref
index
<Object>
start(default 1) and end(default -1) position values. (Ex: {start:1, end:10})
Array
[<subject>,<subject>,...]
static
Int
getSubjectsCount
(
workId
,
filename
)
workId
<String>
Id of rdf work.
filename
<String>
Name of rdf work file.
Int
200
static
String
getSubjectUri
(
)
http://linkdata.org/resource/rdf1s1243i#ABC
http://...?id=ABC&subject=http://linkdata.org/resource/rdf1s1243i#ABC
http://linkdata.org/resource/rdf1s1243i#ABC
String
static
Array
getTriples
(
workId
,
filename
,
callback
,
index
)
workId
<String>
Id of rdf work
filename
<String>
Name of rdf work file
callback
<Function>
the callback function ref
index
<Object>
start(default 1) and end(default -1) position values. (Ex: {start:1, end:10})
Array
[{"subject":<subject>,"property":<property>, "object":<object>},...]
static
Array
getTriplesByProperty
(
workId
,
filename
,
property
,
callback
,
index
)
workId
<String>
Id of rdf work.
filename
<String>
Name of rdf work file.
property
<String>
Url of property. (optional)
callback
<Function>
the callback function ref
index
<Object>
start(default 1) and end(default -1) position values. (Ex: {start:1, end:10})
Array
[{"subject":<subject>,"property":<property>, "object":<object>},...]
static
Array
getTriplesBySubject
(
workId
,
filename
,
subject
,
callback
,
index
)
workId
<String>
Id of rdf work
filename
<String>
Name of rdf work file
subject
<String>
Url of subject. (optional)
callback
<Function>
the callback function ref
index
<Object>
start(default 1) and end(default -1) position values. (Ex: {start:1, end:10})
Array
[{"subject":<subject>,"property":<property>, "object":<object>},...]
static
Array
getWorkName
(
workId
,
callback
)
workId
<String>
Id of rdf work. (optional)
callback
<Function>
the callback function ref
Array
[<workName>]
[{<workId>,[<workName>]},{.....}...]
static
Array
getWorks
(
callback
)
callback
<Function>
the callback function ref
Array
[{<workId>,[<fileName>,<fileName>...]},{.....}...]