OpenMath Content Dictionary: rdf

Canonical URL:
http://www.openmath.org/cd/rdf.ocd
CD Base:
http://www.openmath.org/cd
CD File:
rdf.ocd
CD as XML Encoded OpenMath:
rdf.omcd
Defines:
literal_lang, literal_type, prefix, prefixes, resource, resourceset, value, valueset
Date:
2012-02-29
Version:
1 (Revision 1)
Review Date:
2017-12-31
Status:
experimental

     This document is distributed in the hope that it will be useful, 
     but WITHOUT ANY WARRANTY; without even the implied warranty of 
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

     The copyright holder grants you permission to redistribute this 
     document freely as a verbatim copy. Furthermore, the copyright
     holder permits you to develop any derived work from this document
     provided that the following conditions are met.
       a) The derived work acknowledges the fact that it is derived from
          this document, and maintains a prominent reference in the 
          work to the original source.
       b) The fact that the derived work is not the original OpenMath 
          document is stated prominently in the derived work.  Moreover if
          both this document and the derived work are Content Dictionaries
          then the derived work must include a different CDName element,
          chosen so that it cannot be confused with any works adopted by
          the OpenMath Society.  In particular, if there is a Content 
          Dictionary Group whose name is, for example, `math' containing
          Content Dictionaries named `math1', `math2' etc., then you should 
          not name a derived Content Dictionary `mathN' where N is an integer.
          However you are free to name it `private_mathN' or some such.  This
          is because the names `mathN' may be used by the OpenMath Society
          for future extensions.
       c) The derived work is distributed under terms that allow the
          compilation of derived works, but keep paragraphs a) and b)
          intact.  The simplest way to do this is to distribute the derived
          work under the OpenMath license, but this is not a requirement.
     If you have questions about this license please contact the OpenMath
     society at http://www.openmath.org.
  Author: Ken Wenzel, Fraunhofer IWU

This CD defines symbols for basic integration of RDF data into OpenMath. It should serve as a starting point for future integration scenarios of Linked Data and mathematics. Author: Ken Wenzel, Fraunhofer IWU


resourceset

Role:
application
Description:

This symbol represents an unary construction function for constructing a set of RDF resources. It takes one string argument representing a Manchester Syntax description as described by http://www.w3.org/TR/owl2-manchester-syntax/#Descriptions in order to construct a set of RDF resources.

Please note that it may also be possible to represent the class description by using OpenMath set operations: rdf.resourceset( set1.intersect( rdf.resourceset("foaf:Person"), set1.suchthat(rdf.resourceset("rdfs:Resource"), fns1.lambda[$r -> set1.size(rdf.valueset("foaf:age", $r) > 0)]) ) )

Example:
An example to show the representation of the class of FOAF persons with a known age.
resourceset ( foaf:Person and foaf:age some rdfs:Literal )
Signatures:
sts


[Next: prefixes] [Last: literal_lang] [Top]

prefixes

Role:
semantic-attribution
Description:

A symbol to be used within an OpenMath attribute to specify one or more RDF namespace prefixes. The annotation value should be a set1.set of pairs of strings (prefix name, namespace URI) constructed with the prefix symbol.

Signatures:
sts


[Next: prefix] [Previous: resourceset] [Top]

prefix

Role:
application
Description:

A symbol to be used as the head of the OpenMath application to construct a prefix mapping that can be used as a value of the prefixes attribution. The two arguments of this function should be OpenMath strings representing in order, the prefix and the corresponding namespace URI.

Example:
The prefix mappings rdfs:<http://www.w3.org/2000/01/rdf-schema#> and foaf:<http://xmlns.com/foaf/0.1/> for a rdf.resourceset may be represented by:
resourceset ( foaf:Person and foaf:age some rdfs:Literal )
Signatures:
sts


[Next: resource] [Previous: prefixes] [Top]

resource

Role:
application
Description:

This symbol represents an unary construction function for representing a specific RDF resource. It takes one string argument denoting an IRI reference as prefixed name in the form "prefix:resourceName" or as a full IRI in the form ">IRI<".

Example:
An example to show the representation of the resource http://example.org/persons#Alice using a full IRI reference.
resource ( <http://example.org/persons#Alice> )
Example:
An example to show the representation of the resource http://example.org/persons#Alice using the prefixed name example:Alice.
resource ( example:Alice )
Signatures:
sts


[Next: value] [Previous: prefix] [Top]

value

Role:
application
Description:

This symbol represents a function for accessing the value of an RDF property. It takes two arguments, a string denoting the property and an object denoting the RDF resource whose property value should be retrieved.

Example:
An example that retrieves the property value for http://xmlns.com/foaf/0.1/age of the resource http://example.org/persons#Alice.
value ( foaf:age , resource ( example:Alice ) )
Signatures:
sts


[Next: valueset] [Previous: resource] [Top]

valueset

Role:
application
Description:

This symbol represents a function for accessing all values of multivalued RDF property. It takes two arguments, a string denoting the property and an object denoting the RDF resource whose property values should be retrieved.

Example:
An example that retrieves the property values for http://xmlns.com/foaf/0.1/knows of the resource http://example.org/persons#Alice and hence all persons known by Alice.
p valueset ( foaf:knows , resource ( example:Alice ) )
Signatures:
sts


[Next: literal_type] [Previous: value] [Top]

literal_type

Role:
semantic-attribution
Description:

A symbol to be used within an OpenMath attribute to specify the type of an RDF literal which is represented as an OpenMath object. The annotation value should be an rdf.resource.

Example:
An example to show the representation of the typed RDF literal "This is a string."^^<http://www.w3.org/2001/XMLSchema#string> using a full IRI reference.
This is a string.
Signatures:
sts


[Next: literal_lang] [Previous: valueset] [Top]

literal_lang

Role:
semantic-attribution
Description:

A symbol to be used within an OpenMath attribute to specify the language of an RDF literal. The annotation value should be an OpenMath string.

Example:
An example to show the representation of the RDF literal "This is an English text."@en.
This is an English text.
Signatures:
sts


[First: resourceset] [Previous: literal_type] [Top]