Basic examples

The following examples demonstrate the basic functionality of XTriples. Use the buttons to see the underlying XML of the examples, the configuration files and the results of each extraction. XTriples is used in many Digital Humanities research projects. Please have a look at this page for some papers, conference presentations and project examples.

Example 1: XPATH based resource crawling with resources all in one single file

XML Configuration Result

Example 2: XPATH based resource crawling with resources spread over multiple files

XML Configuration Result

Example 3: Link based resource crawling with fixed resources in the configuration file

Configuration Result

Example 4: Literal resource crawling with XML resources sent together with the configuration

Configuration Result

Example 5: FOAF statement for one resource

XML Configuration Result

Example 6: Extracting a subject URI

Configuration Result

Example 7: Creating a subject blank node

Configuration Result

Example 8: Including a value from an external XML resource

Configuration Result

Example 9: Prepend and append values to the subject result

Configuration Result

Example 10: Creating an object URI

Configuration Result

Example 11: Creating a typed object literal

Configuration Result

Example 12: Creating a language tagged literal

Configuration Result

Example 13: Including a value from an external resource in the object

Configuration Result

Example 14: Applying a <condition> to a statement pattern

Configuration Result

Example 15: Using the $currentResource variable in statement patterns

Configuration Result

Example 16: Using the $repeatIndex variable in statement patterns

Configuration Result

Example 17: Creating a 1:n statement with an object node set

Configuration Result SVG

Example 18: Creating a n:1 statement with a subject node sets

Configuration Result SVG

Example 19: Creating n:m statements in a single statement pattern

Configuration Result SVG

Example 20: Using the internal xtriples result format for debugging purposes

Configuration Result