Global

Members

bnodes

Our identified blank nodes @private
Source:

(constant) IndexedFormula

Things to test: callbacks on request, refresh, retract loading from HTTP, HTTPS, FTP, FILE, others? To do: Firing up a mail client for mid: (message:) URLs
Source:

RDFParser

DOM Level 2 node type magic numbers @final
Source:

RDFParser

Standard namespaces that we know how to handle @final
Source:

reify

Reification flag
Source:

store

Our triple store reference @private
Source:

(constant) Uri

UTF-8 data encode / decode http://www.webtoolkit.info/
Source:

why

A context for context-aware stores @private
Source:

Methods

addArc()

Add an arc or property to this frame
Source:

addBNode()

Add a bnode to this frame
Source:

addCollection()

Add a collection node to this frame
Source:

addCollectionArc()

Add a collection arc to this frame
Source:

addLiteral()

Add a literal to this frame
Source:

addNode()

Add a symbolic node to this frame
Source:

addSymbol()

Add a symbol of a certain type to the this frame
Source:

(static) fromBoolean(value) → {Literal}

Parameters:
Name Type Description
value Boolean
Source:
Returns:
Type
Literal

(static) fromDate(value) → {Literal}

Parameters:
Name Type Description
value Date
Source:
Returns:
Type
Literal

(static) fromNumber(value) → {Literal}

Parameters:
Name Type Description
value Number
Source:
Returns:
Type
Literal

(static) fromValue(value) → {Node|Collection}

Creates an RDF Node from a native javascript value. RDF Nodes are returned unchanged, undefined returned as itself.
Parameters:
Name Type Description
value Node | Date | String | Number | Boolean | Undefined
Source:
Returns:
Type
Node | Collection

fromValue(value) → {Literal}

Parameters:
Name Type Description
value
Source:
Returns:
Type
Literal

indexedFormulaQuery(myQuery, callback, fetcher, onDone)

This function will match a pattern to the current kb The callback function is called whenever a match is found When fetcher is supplied this will be called to satisfy any resource requests currently not in the kb. The fetcher function needs to be defined manualy and should call $rdf.Util.AJAR_handleNewTerm to process the requested resource.
Parameters:
Name Type Description
myQuery a knowledgebase containing a pattern to use as query
callback whenever the pattern in myQuery is met this is called with the new bindings as parameter
fetcher IGNORED OBSOLETE f.fetecher is used as a Fetcher instance to do this.
onDone callback when query finished
Source:

isTripleToLoad()

Check if it's OK to load a triple
Source:

loadTriple()

Load any constructed triples into the store
Source:

parse()

Parse a string and put the result into the graph kb. Normal method is sync. Unfortunately jsdonld is currently written to need to be called async. Hence the mess below with executeCallback.
Source:

parse(document, base, why)

Build our initial scope frame and parse the DOM into triples
Parameters:
Name Type Description
document DOMTree The DOM to parse
base String The base URL to use
why Object The context to which this resource belongs
Source:

serialize()

Serialize to the appropriate format
Source:

SPARQLToQuery()

Source:

terminateFrame()

Terminate the frame and notify the store that we're done
Source: