Export & Extras
Export Your Data β
Coming soon...
XPath Cheatsheetβ
XPath is an expression language that is used to address the nodes in an XML tree. You do not need to have an in-depth understanding of XPath in order to use 3M, but you will need to know some basic XPath expressions in order to navigate around the source data XML file and select the correct values in the relevant nodes.
Here is a cheatsheet of the basic XPath expressions you will need to know:
@
= selecting an attribute
text()
= selecting the value of an element
../
= moving up a node in the tree
../../
= moving up two nodes in the tree
Interface of a Mapping Projectβ
This section describes 3M mapping project components. It supplements the information for the Creating a Mapping Project in 3M page.
You may find it helpful to think about each component in the context of your own data. Consider what 3M will grab from your original data and where that piece of information will end up in your converted data. Recall from 3M Basic Principles that 3M takes XML and produces RDF triples as the converted data.
subject β predicate β object
The definitions below explain which 3M components create which parts of a triple.
Domainβ
The domain is used to specify the source node and the corresponding XML element in your data, which acts as the subject in one or more new triples. The domain also includes a target entity, which defines the class for that subject. Each mapping has one domain.
Generator Definitionβ
Generator definitions are templates for constructing instance and label generators. They are established in the generatory policy. Read the Generator Policy Manual for more information. Note: Although the Generator Policy Manual references an older version of 3M than the version used by LINCS, the information still applies.
Generator Policyβ
The generator policy is an XML file with all the generator definitions for the project. The LINCS 3M instance comes preloaded with generator policy files, but you can construct your own generator policy by following the Generator Policy Manual . Note: Although the Generator Policy Manual references an older version of 3M than the version used by LINCS, the information still applies.
Instance Generatorβ
An instance generator creates a URI or a literal for an entity. Every entity must have an instance generator. For examples and use cases, see Generators .