test_graph v0.1.0 NeoSemantics.Mapping

Module providing simple wrapper functions for the neosemantics library mapping functions.

Link to this section Summary

Functions

Creates a references to a number of popular vocabularies including schema.org, Dublin Core, SKOS, OWL, etc

Creates a mapping for an element in the Neo4j DB schema to a vocabulary element

Creates a reference to a vocabulary. Needed to define mappings

Returns an output text message indicating success/failure of the deletion

Deletes a vocabulary reference and all associated mappings

Returns a list with all the mappings

Returns all vocabulary references

Link to this section Functions

Link to this function

add_common_schemas(conn)

Creates a references to a number of popular vocabularies including schema.org, Dublin Core, SKOS, OWL, etc.

Link to this function

add_mapping_to_schema(conn, node, element1, element2)

Creates a mapping for an element in the Neo4j DB schema to a vocabulary element.

Link to this function

add_schema(conn, uri, prefix)

Creates a reference to a vocabulary. Needed to define mappings.

Link to this function

drop_mapping(conn, element)

Returns an output text message indicating success/failure of the deletion.

Link to this function

drop_schema(conn, uri)

Deletes a vocabulary reference and all associated mappings.

Link to this function

list_mappings(conn, search_string \\ nil)

Returns a list with all the mappings.

Link to this function

list_schemas(conn, search_string \\ nil)

Returns all vocabulary references.