new $k.RDFImporter()
Creates a new RDFImporter
- Version:
- Experimental feature, might be removed at any time
Methods
importFromString(rdf, baseURI) : Array.<object>
Import the RDF/XML string
Name | Type | Description |
---|---|---|
rdf |
string |
String containing RDF/XML |
baseURI |
string |
optional
Base URI |
- Since:
- 4.3.3
Returns:
Type | Description |
---|---|
Array.<object> | Object with information about the import.
Each log entry contains some or all of the following properties:
|
importFromURI(uri) : Array.<string>
import from URI
Name | Type | Description |
---|---|---|
uri |
string |
Returns:
Type | Description |
---|---|
Array.<string> | Object with information about the import.
Each log entry contains some or all of the following properties:
|
setActivateTriggers(bool) : $k.RDFImporter
activate Triggers
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setAvoidDuplicateProperties(bool) : $k.RDFImporter
Avoid duplicate properties
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setEnableCreateSchema(bool) : $k.RDFImporter
Allow schema changes
Name | Type | Description |
---|---|---|
bool |
boolean |
True if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setEnforceInverseRelationConcepts(bool) : $k.RDFImporter
Create inverse relation types
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setIdentifyGlobalResourcesByID(bool) : $k.RDFImporter
Identify objects with global URI also by local ID
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setIgnoreHTTPExceptions(bool) : $k.RDFImporter
Ignore HTTP errors
Name | Type | Description |
---|---|---|
bool |
boolean |
True if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setImportInverseRelationTypes(bool) : $k.RDFImporter
Allow deferred relation creation
Name | Type | Description |
---|---|---|
bool |
boolean |
True if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setImportReferencedResources(bool) : $k.RDFImporter
Import referenced resources
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setImportStrategy(strategy) : $k.RDFImporter
import strategy
Name | Type | Description |
---|---|---|
strategy |
string |
"updateOrCreate": Update or create if not found |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setSingleTransaction(bool) : $k.RDFImporter
Import in a single transaction
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |
setStoreInFolder(bool) : $k.RDFImporter
Add imported objects to a folder (will be created in the private folder)
Name | Type | Description |
---|---|---|
bool |
boolean |
False if not defined |
Returns:
Type | Description |
---|---|
$k.RDFImporter | The Importer |