Convert rdf data

This System is a new addition and is subject to change and general bugginess. If you have any questions or bug reports, contact Colin Williams or Nick Gibbins.

Request:
Entity URI: http://id.ecs.soton.ac.uk/
Converters:
Output:

Simple URIs for commonly used mappings

It is possible to use the mapping tool using a simple URI if the required mapping is 'key foaf' or 'key akt'.

An ECS entity can be mapped to the FOAF ontology using the URIs:

http://rdf.ecs.soton.ac.uk/foaf/<entity>
http://intra.rdf.ecs.soton.ac.uk/foaf/<entity>

An ECS entity can be mapped to the AKT ontology using the URIs:

http://rdf.ecs.soton.ac.uk/akt/<entity>
http://intra.rdf.ecs.soton.ac.uk/akt/<entity>

Running from a URI

It is quite likely that you will want this service to be run from a script. This can be done by setting the path. It should look like this

http://id.ecs.soton.ac.uk/mapping/<visibility>/<entity>[|<converter>]*[?<output>]

visibility
Whether to retrieve the internal or external version of the data. Setting to "intra" will get the internal and rdf will get the external. Must also be inside the UoS to get the internal list.
entity
The part of the URI after http://id.ecs.soton.ac.uk/. See the documentation for further details.
converter
A "converter" to pass the data through. See converters for more information. The default is the following set of converters:
|r2p|map akt tel mailto|sup|nsr|app
output (default: RDF)
The default is to return the list in RDF format. Add "?html" to get a html table of results.

Converters

The following converters are available:

Role URI to Person URI Converter

r2p 

Converts role URIs (of the form http://id.ecs.soton.ac.uk/role/*) into the associated person URI for that role (of the form http://id.ecs.soton.ac.uk/person/*). This is performed by following the ecs:hasRole predicate from the data obtained about the role. All role URIs that are used for this conversion are referenced using the dc:source predicate.
Note: URLs of the form http://rdf.ecs.soton.ac.uk/role/* and http://intra.rdf.ecs.soton.ac.uk/role/* are not affected by this mapping, as they refer to documents and not to entities.

Mapping Converter

map <url-of-mapping> [<minimum-confidence-limit>]

Converts entities in one ontology to entities in another, using a mapping file.
The url of the mapping should be specified as the first parameter. The mapping at the url should be a file created using the http://knowledgeweb.semanticweb.org/heterogeneity/alignment ontology. Such mappings can be produced using a tool like falcon-ao. If the mapping is a simple alphanumeric string, it will be assumed to be prefixed by http://rdf.ecs.soton.ac.uk/ontology/mapping/
The minimal confidence limit of the cells of the mapping that should be used should be specified as a parameter. The default minimal confidence limit is 0.75. The value of the minimal confidence limit must be between 0 and 1 inclusive.

Out of Namespace Statement Remover

nsr [-d | -c [<valid-namespace>]+ | [<invalid-namespace>]+]

Removes triples that contain resources that have a namespace that is in the list of invalid namespaces.
With the -c flag set, removes triples that contain resources that have a namespace that is not in the list of valid namespaces.
With the -d flag set, triples that contain resources that are in the following namespaces will be removed

Appellation Converter

app 

Converts literals that are the object of the akt:has-appellation predicate using the following mapping (and is case insensitive):

Superclass Remover

sup 

Removes rdf:type triples if the triple is less specific than another triple.

Data Expander

exp <section>

Expands model by resolving id URIs for a certain section and combining the models.

Ontology Adder

ont <url-of-ontology>

Expands model by combining the model with the specified ontology.

Resource Identifier Changer

ric <section>

Converts all id URIs for a given section into ids which enhance browsing of the data using protege. Not suitable for any other purpose as URIs are altered.

Key Statement Converter

key <name>

Converts a model using a mapping, also performing the chains specified by the mapping's pre- and post-processes.

FOAF Homepage Adder

fha 

Adds foaf:schoolHomepage, foaf:workInfoHomepage and foaf:workplaceHomepage

Address to Location Converter

add 

Converts foaf:based_near address bNodes into locations.

Literal Converter

lit [tel|mailto]*

Converts URIs to literals.
Specifying 'tel' as a parameter causes all tel: URIs to be converted to literals
Specifying 'mailto' as a parameter causes all mailto: URIs to be converted to literals

Other Notes

If you're having trouble just use the form to generate the correct query and copy it to where you need it.

Credits

Work on this system was carried out by Nicholas Gibbins and Colin Williams. The system makes use of the RAP RDF API.