$k. RDFImporter

new RDFImporter()

Creates a new RDFImporter

Version
  • Experimental feature, might be removed at any time

Methods

importFromString(rdf, baseURIopt) → {Array.<object>}

Import the RDF/XML string

Parameters:
NameTypeAttributesDescription
rdfstring

String containing RDF/XML

baseURIstring<optional>

Base URI

Since
  • 4.3.3
Returns:

Object with information about the import. { "errorCount":, "log": [ logEntry1, logEntry2, ... ] }

Each log entry contains some or all of the following properties: { "message" : "", "line" : "line number", "uri" : "URI of the RDF document" }

Type: 
Array.<object>

importFromURI(uri) → {Array.<string>}

import from URI

Parameters:
NameTypeDescription
uristring
Returns:

Object with information about the import. { "errorCount":, "log": [ logEntry1, logEntry2, ... ] }

Each log entry contains some or all of the following properties: { "message" : "", "line" : "line number", "uri" : "URI of the RDF document" }

Type: 
Array.<string>

setActivateTriggers(bool) → {$k.RDFImporter}

activate Triggers

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setAllowDeferredRelations(bool) → {$k.RDFImporter}

Allow deferred relation creation

Parameters:
NameTypeDescription
boolboolean
Since
  • 5.3.3
Returns:

The Importer

Type: 
$k.RDFImporter

setAvoidDuplicateProperties(bool) → {$k.RDFImporter}

Avoid duplicate properties

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setEnableCreateSchema(bool) → {$k.RDFImporter}

Allow schema changes

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setEnforceInverseRelationConcepts(bool) → {$k.RDFImporter}

Create inverse relation types

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setIdentifyGlobalResourcesByID(bool) → {$k.RDFImporter}

Identify objects with global URI also by local ID

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setIgnoreHTTPExceptions(bool) → {$k.RDFImporter}

Ignore HTTP errors

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setImportInverseRelationTypes(bool) → {$k.RDFImporter}

Allow deferred relation creation

Parameters:
NameTypeDescription
boolboolean
Deprecated
  • Use setAllowDeferredRelations() instead
Returns:

The Importer

Type: 
$k.RDFImporter

setImportReferencedResources(bool) → {$k.RDFImporter}

Import referenced resources

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setImportStrategy(strategy) → {$k.RDFImporter}

Import strategy

Parameters:
NameTypeDescription
strategystring

"updateOrCreate": Update or create if not found "default": Default "update": Update "replace": Replace "supress": Do not import "locate": Locate

Returns:

The Importer

Type: 
$k.RDFImporter

setLogModifiedRelationTargets(bool) → {$k.RDFImporter}

Add modified relation targets to logged objects

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter

setModifiedElementCallback(callback) → {$k.RDFImporter}

Set the logging callback function

Parameters:
NameTypeDescription
callbackfunction

Callback function that receives two arguments, the affected element and a change type string

Version
  • Experimental feature, might be removed at any time
Since
  • 5.3.2
Returns:

The Importer

Type: 
$k.RDFImporter

setSingleTransaction(bool) → {$k.RDFImporter}

Import in a single transaction

Parameters:
NameTypeDescription
boolboolean

False if not defined

Returns:

The Importer

Type: 
$k.RDFImporter

setStoreInFolder(bool) → {$k.RDFImporter}

Add imported objects to a folder (will be created in the private folder)

Parameters:
NameTypeDescription
boolboolean
Returns:

The Importer

Type: 
$k.RDFImporter