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 .
Intermediate
Intermediates are intermediate entities that create an additional target relation and target entity within a link. By default, a link will have (a) a source relation with an accompanying target relation, and (b) a source node with an accompanying target entity. Intermediates are often used to produce a triple where the object of the initial triple becomes the subject of an additional triple—like a chain of triples. There can be multiple intermediates in a link depending on the complexity of the initial conceptual mapping and the structure of your XML. For an example of intermediates in use, see intermediate sample .