The cl-rdfxml Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-rdfxml Reference Manual

This is the cl-rdfxml Reference Manual, version 0.9, generated automatically by Declt version 2.3 "Robert April" on Tue Feb 20 08:15:39 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

CL-RDFXML — An RDF/XML Parser for Common Lisp

There are now a number of libraries for processing some of the technologies upon which RDF/XML is built. Particularly, Closure XML is a robust, mature XML parser, and manipulation of URIs is easy using Puri.

This RDF/XML parser builds upon these libraries so as to minimize the amount of code that is not directly related to parsing RDF/XML, and provides a simple interface for extracting triples from RDF/XML documents.

Documentation generated by documentation-template is available at the project's prior home


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-rdfxml

Author

Joshua Taylor

Description

The CL-RDFXML system provides functionality for processing RDF/XML serializations of RDF graphs. RDF/XML processes XML using Closure XML (CXML), and handles URIs using PURI.

Version

0.9

Dependencies
Source

cl-rdfxml.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 cl-rdfxml.asd

Location

cl-rdfxml.asd

Systems

cl-rdfxml (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 cl-rdfxml/package.lisp

Parent

cl-rdfxml (system)

Location

package.lisp

Packages

cl-rdfxml


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 cl-rdfxml/utilities.lisp

Dependencies
Parent

cl-rdfxml (system)

Location

utilities.lisp

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.4 cl-rdfxml/constants.lisp

Dependencies
Parent

cl-rdfxml (system)

Location

constants.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.5 cl-rdfxml/rdfxml.lisp

Dependencies
Parent

cl-rdfxml (system)

Location

rdfxml.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 cl-rdfxml

The cl-rdfxml package provides functionality for processing RDF/XML representations of RDF graphs. RDF/XML processes XML using Closure XML (CXML) and handles URIs using PURI.

Source

package.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Special variables

Special Variable: *coerce-datatyped-empty-properties*

A boolean (whose default value is false) that controls whether an empty property element that contains a datatype attribute (a case which is prohibited by the RDF/XML Syntax Specification) is coerced to a typed literal with the specified datatype and the empty string "" as a lexical form. Also see the condition type datatyped-empty-property and the keyword argument coerce-datatyped-empty-properties to the function parse-document.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *parse-uris-strictly*

A boolean (whose default value is true) that controls whether URIs are parsed strictly. This determines whether, within parse-document, a handler is established for conditions of type puri:uri-parse-error which will attempt to parse malformed URIs in a non-strict way. Also see the restart function parse-uri-non-strictly, and the parse-uris-strictly keyword argument to parse-document.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *warn-on-non-namespaced-names*

A boolean (whose default value is true) that controls whether a warning is signalled when a permitted non-namespaced attribute is encountered. The only attributes which may appear without namespaces are ID, about, resource, parseType, and type. New documents should not use unqualified forms, though they may appear in legacy documents. See Section 6.1.4 of the RDF/XML Syntax Specification.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *warn-on-parse-type-other*

A boolean (whose default value is false) that controls whether a warning is signalled when an element is encountered that specifies the rdf:parseType attribute with a value other than "Literal", "Resource", or "Collection". Such an element is treated as though the value were "Literal", and this situation is not an error. Nonetheless, it seems likely that one might be interested in knowing when it occurs.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *warn-on-rdf-prefixed-non-rdf-names*

According to to Section 5.1, The RDF Namespace and Vocabulary of the RDF/XML Syntax Specification, warnings SHOULD be generated when a name is encountered that begins with the RDF namespace name, but is not an RDF name. If *warn-on-rdf-prefixed-non-rdf-names* is true (the default), then such warnings are generated, but are muffled otherwise.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: +rdf-about+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-about-each+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-about-each-prefix+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-alt+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-bag+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-bag-id+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-datatype+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-description+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-first+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-id+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-li+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-list+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-namespace+

The string prefix of RDF terms: http://www.w3.org/1999/02/22-rdf-syntax-ns# .

Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-nil+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-node-id+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-object+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-parse-type+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-predicate+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-property+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-rdf+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-resource+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-rest+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-seq+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-statement+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-subject+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-type+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-value+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdf-xml-literal+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-class+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-comment+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-container+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-container-membership-property+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-datatype+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-domain+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-is-defined-by+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-label+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-literal+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-member+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-namespace+

The string prefix of RDFS terms: http://www.w3.org/2000/01/rdf-schema#

Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-range+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-resource+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-see-also+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-subclass-of+
Package

cl-rdfxml

Source

constants.lisp (file)

Special Variable: +rdfs-subproperty-of+
Package

cl-rdfxml

Source

constants.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Functions

Function: blank-node &optional ID NAMESPACE

blank-node [id [namespace]] => blank-node
id—a string
namespace—an equal hash-table
Blank-node returns a blank node. If id is specified, then if there is already a blank node in namespace whose id is equal to id, then that blank node is returned. Otherwise, a new blank node is created, inserted into namespace, and returned. If id is not specified, then a new blank node is returned, and namespace is not modified.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: ignore-attribute &optional CONDITION

ignore-attribute [condition] => |
condition—a condition
Ignore-attribute attempts to invoke the restart named ignore-attribute. This is intended for use when an attribute appears in a place where it is prohibited, but parsing would continue successfully if the attribute had not been specified.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: ignore-attributes &optional CONDITION

ignore-attributes [condition] => |
condition—a condition
Ignore-attributes attempts to invoke the restart named ignore-attributes. This is intended for use when duplicate attributes are provided and all can be ignored, or when mutually exclusive attributes appear, and all can be ignored.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: ignore-characters &optional CONDITION

ignore-characters [condition] => |
condition—a condition
Ignore-characters attempts to invoke the restart named ignore-characters. This is intended for use when character data appears in a place that should have been whitespace.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: ignore-language &optional CONDITION

ignore-language [condition] => |
condition—a condition
Ignore-language treats a xml:lang attribute whose value was not a language tag conforming to RFC 3066 as though the attribute had not been specified. This occurs by invoking the restart ignore-language.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: intern-plain-literal STRING &optional LANGUAGE

intern-plain-literal string [language] => plain-literal
string, language—strings
plain-literal—a plain literal
Intern-plain-literal returns a literal with the specified string and language. Calls to intern-plain-literal with strings that are equal and languages that are equal return the same literal object.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: intern-typed-literal STRING DATATYPE

intern-plain-literal string datatype => typed-literal
string—a string
datatype—a URI designator
typed-literal—a typed literal
intern-typed-literal returns a literal with the specified string and datatype. Calls to intern-plain-literal with strings that are equal and designators for the same URI return the same literal object.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-as-typed-literal &optional CONDITION

parsed-as-typed-literal [condition] => |
condition—a condition
parse-as-typed-literal attempts to parse an empty-property-element as typed literal. This is intended to be used when an rdf:datatype attribute is present on an empty property element. Strictly speaking, this is prohibited by the RDF/XML specification (see errata), but some RDF/XML parses output it anyway.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-document FUNCTION INPUT &key (COERCE-DATATYPED-EMPTY-PROPERTIES *COERCE-DATATYPED-EMPTY-PROPERTIES*) (PARSE-URIS-STRICTLY *PARSE-URIS-STRICTLY*) (WARN-ON-RDF-PREFIXED-NON-RDF-NAMES *WARN-ON-RDF-PREFIXED-NON-RDF-NAMES*) (WARN-ON-NON-NAMESPACED-NAMES *WARN-ON-NON-NAMESPACED-NAMES*) (WARN-ON-PARSE-TYPE-OTHER *WARN-ON-PARSE-TYPE-OTHER*)

parse-document function input => |
function—a function of three arguments
input—an input suitable for cxml:make-source
Parse-document parses input, binds *triple-receiver* to function, and calls emit-triple with each triple that can be extracted from the input. *blank-nodes* is rebound to a new equal hash table and maps blank node identifiers to their blanks nodes. If the document element is rdf:RDF, then its children are processed as node elements, otherwise, the body of the document is parsed as a sequence of node elements.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-uri-non-strictly CONDITION

parse-uri-non-strictly condition => result*
condition—a condition
Parse-uri-non-strictly is a restart function that invokes the restart named parse-uri-non-strictly. If no such restart is available, parse-uri-non-strictly returns NIL, otherwise the results of invoking the restart are returned.

Package

cl-rdfxml

Source

rdfxml.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Generic functions

Generic Function: blank-node-id BLANK-NODE

blank-node-id blank-node => id
blank-node—a blank-node
id—a string
Blank-node-id returns the ID of the blank-node. Blank-node-ids are intended to be used for readability purposes. Blank-nodes should be compared directly using object equality. That two blank-nodes have ids that are string= does not mean that they represent the same RDF blank-node.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Methods
Method: blank-node-id (BLANK-NODE blank-node)

The graph-local ID of the blank-node. This slot is
unbound if the blank node has no id. The id of a blank node is used to identify the blank node within the scope of a particular graph. That two blank-nodes happen to have the same ID is not an indication that they represent the same blank node.

Generic Function: literal-datatype TYPED-LITERAL

literal-datatype typed-literal => datatype
typed-literal—a typed-literal
datatype—an interned PURI uri
Literal-datatype returns the datatype of a typed-literal. The datatype URI is interned, and may be compared with eq.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Methods
Method: literal-datatype (TYPED-LITERAL typed-literal)

The datatype of a typed-literal, which is not optional, is a URI designating the datatype.

Generic Function: literal-language PLAIN-LITERAL

literal-language plain-literal => result
plain-literal—a plain-literal
result—a string or nil
Literal-language return the language tag of the plain-literal, if there is one, and nil if no language tag is associated with the literal.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Methods
Method: literal-language (PLAIN-LITERAL plain-literal)

The language tag associated with a plain literal.
If language is nil, the the plain-literal has no language type. If language is non-nil, it should be a string that conforms to RDF 3066.

Generic Function: literal-string LITERAL

literal-string literal => string
literal—a literal
string—a string
Literal-string returns the lexical form of the literal.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Methods
Method: literal-string (LITERAL literal)

The lexical form of the literal.


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.4 Conditions

Condition: bad-node-element-uri ()

Errors of type bad-node-element-uri are signalled
when a URI that is not a node-element-uri is specified in a position where a node-element-uri is expected.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

bad-uri (condition)

Condition: bad-property-element-uri ()

Errors of type bad-property-element-uri are
signalled when a URI that is not a property-element-uri is specified in a position where a property-element-uri is expected.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

bad-uri (condition)

Condition: bad-uri ()

Errors that are subclasses of bad-uri are signalled
when a URI appears in a place that a URI is required, but the provided URI is not a valid URI for that place.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct subclasses
Direct methods

uri (method)

Direct slots
Slot: uri
Initargs

:uri

Readers

uri (generic function)

Condition: datatyped-empty-property ()

Errors of type datatyped-empty-property are
signaled when the parser is attempting to parser an empty property, but an rdf:datatype attribute is specified. rdf:datatype is not a permissible attribute on on empty properties, but it is expected that this case will most likely arise when the intent was to generate a literal element with an empty string. When this type of error is signalled, it is expected that one of the available restarts will make an attempt to parse the element as a literal with a null string. This issue is also in the errata of the RDF/XML syntax specification.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

prohibited-attribute (condition)

Condition: duplicate-attribute ()

Errors of type duplicate-attribute are signalled
when attributes are specified more than once and the XML parser did not flag the error. This happens when, according to the RDF/XML specification, certain non-namespaced attributes are interpreted as being in the RDF namespace. A duplicate attribute can appear, for instance, when rdf:ID is specified in conjunction with ID, which is interpreted as rdf:ID.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct methods

attribute (method)

Direct slots
Slot: attribute
Initargs

:attribute

Readers

attribute (generic function)

Condition: illegal-namespace-name ()

According to Section 5.1 of the RDF/XML Syntax
Specification, Within RDF/XML documents it is not permitted to use XML namespaces whose namespace name is the RDF namespace URI reference concatenated with additional characters.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct methods
Direct slots
Slot: prefix
Initargs

:prefix

Readers

prefix (generic function)

Slot: uri
Initargs

:uri

Readers

uri (generic function)

Condition: invalid-attribute-value ()

Conditions of type invalid-attribute-value are
signalled when an attribute value is not appropriate for the particular attribute. This kind of situation may happen, for instance, if a xml:lang value is not RFC 3066 compliant, or if an rdf:ID or rdf:nodeID value is not an XML NCName. Note that these situations are distinct from those in which an attribute appears where it should not.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct subclasses
Direct methods
Direct slots
Slot: value
Initargs

:value

Readers

value (generic function)

Slot: attribute
Initargs

:attribute

Readers

attribute (generic function)

Condition: invalid-language-tag ()

Language tags in RDF/XML (and more generally, XML)
must be in accordance with RFC 3066. When a language tag is specified that is not of the proper form, an error of type invalid-language-tag is signalled.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

invalid-attribute-value (condition)

Direct methods

tag (method)

Direct slots
Slot: tag
Initargs

:tag

Readers

tag (generic function)

Condition: mutually-exclusive-attributes ()

Some elements are permitted to contain one of a set
of attributes, but no more than one of the set. That is, there are attributes that are permitted on an element, but are mutually exclusive. This class of error is signalled when such attributes are encountered.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct methods

attributes (method)

Direct slots
Slot: attributes
Initargs

:attributes

Readers

attributes (generic function)

Condition: non-namespaced-attribute ()

Certain attribute, namely rdf:ID, rdf:about,
rdf:resource, rdf:parseType, and rdf:type are permitted to appear without a namespace specified. These attributes are automatically treated as though they had appeared with the RDF namespace prefix. Any other attributes without namespaces, however, must not appear.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

prohibited-attribute (condition)

Condition: non-namespaced-name ()

According to 6.1.4 of the RDF/XML Syntax
Specification, the attributes ID, about, resource, parseType, and type may appear without a namespace prefix, and are interpreted as the corresponding RDF names. Also, "new documents SHOULD NOT use these unqualified attributes, and applications MAY choose to warn when the unqualified form is seen in a document." non-namespaced-name is the class of warnings that are signalled in such situations.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-warning (condition)

Direct methods

name (method)

Direct slots
Slot: name
Initargs

:name

Readers

name (generic function)

Condition: non-nc-name-id ()

Errors of type non-nc-name-id are raised when
attributes rdf:ID or rdf:nodeID appear with values that are not valid NCNames.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

invalid-attribute-value (condition)

Condition: other-parse-type ()

The rdf:parseType attribute has three explicitly
meaning values, "Resource", "Literal", and "Collection". If rdf:parseType is encountered with a different value, the element is processed as though the value had been "Literal". The specification does not indicate that a warning should be signalled, and so such warnings are not generated in the default case, but if the user requests warnings on such attribute values, a warning of type other-parse-type is signalled.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-warning (condition)

Direct methods

parse-type (method)

Direct slots
Slot: parse-type
Initargs

:parse-type

Readers

parse-type (generic function)

Condition: prohibited-attribute ()

At various places in RDF/XML, the set of attributes
permissible on an element is restricted. When an attribute appears on an element but is not allowed there, an prohibited-attribute error is signalled.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct subclasses
Direct methods

attribute (method)

Direct slots
Slot: attribute
Initargs

:attribute

Readers

attribute (generic function)

Condition: rdf-prefixed-non-rdf-name ()

According to "Section 5.1 The RDF Namespace and
Vocabulary" of the RDF/XML Syntax Specification, certain names are defined as RDF names, and these begin with the RDF namespace name, but "any other names [beginning with the RDF namespace name] are not defined and SHOULD generate a warning when encountered, but should otherwise behave normally." rdf-prefixed-non-rdf-name is the class of warnings that are signalled in such situations.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-warning (condition)

Direct methods

name (method)

Direct slots
Slot: name
Initargs

:name

Readers

name (generic function)

Condition: rdfxml-error ()

The class of errors signalled by the RDF/XML parser.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

error (condition)

Direct subclasses
Direct methods

source (method)

Direct slots
Slot: source
Initargs

:source

Readers

source (generic function)

Condition: rdfxml-warning ()

The class of warnings signalled by the RDF/XML parser.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

warning (condition)

Direct subclasses
Condition: repeated-id ()

Errors of type repeated-id are signalled when the
value of an rdf:ID on an element is the same as the value of an rdf:ID attribute on another element. rdf:IDs should be unique within the a document.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

invalid-attribute-value (condition)

Condition: unexpected-characters ()

Excess whitespace is always permitted between
elements, but arbitrary character data is not. When non-whitespace character data is encountered where whitespace is expected, an error of type unexpected characters is signalled.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

rdfxml-error (condition)

Direct methods

characters (method)

Direct slots
Slot: characters
Initargs

:characters

Readers

characters (generic function)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.5 Classes

Class: blank-node ()

The blank-node class represents blank nodes in a
graph. Blanks nodes are local to a graph, and can be identified within a graph by their ID. The blank-node id is used for refering to the same blank node in an RDF/XML document, and so in general, blank-nodes ought to compared using object equality, i.e., eq.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: id

The graph-local ID of the blank-node. This slot is
unbound if the blank node has no id. The id of a blank node is used to identify the blank node within the scope of a particular graph. That two blank-nodes happen to have the same ID is not an indication that they represent the same blank node.

Type

string

Initargs

:id

Readers

blank-node-id (generic function)

Class: literal ()

The literal class is the superclass of both the
plain-literal and the typed literal. Every literal has some lexical form, and the slot storing this form is defined in the literal class, and may be read with literal-string.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Direct methods

literal-string (method)

Direct slots
Slot: string

The lexical form of the literal.

Type

string

Initargs

:string

Readers

literal-string (generic function)

Class: plain-literal ()

The plain-literal class is the class comprising all plain-literals. These literals have a lexical form, inherited from the superclass literal, and an optional language tag. The language tag, when provided, should be of the form specified by RFC 3066, and is normalized to lowercase.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

literal (class)

Direct methods
Direct slots
Slot: language

The language tag associated with a plain literal.
If language is nil, the the plain-literal has no language type. If language is non-nil, it should be a string that conforms to RDF 3066.

Type

(or null string)

Initargs

:language

Readers

literal-language (generic function)

Class: typed-literal ()

The typed-literal class is the class comprising all typed-literals. These literals have a lexical form, inherited from the superclass literal, and a required datatype. The datatype is a puri:uri.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Direct superclasses

literal (class)

Direct methods
Direct slots
Slot: datatype

The datatype of a typed-literal, which is not optional, is a URI designating the datatype.

Type

puri:uri

Initargs

:datatype

Readers

literal-datatype (generic function)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *blank-nodes*

An equal hash table that is used for ‘interning’ blank node IDs within the scope of a single graph. Initially nil, but should be bound for each graph being processed.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *current-xml-lang*

The most recent xml:lang attribute that was specified in the RDF/XML text. The initial value is nil, and *current-xml-lang* is always rebound to nil when document parsing begins.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *element-ids*

During parsing, an ’equal hash table that functions as a set of the IDs that have been processed. Duplicate IDs in an RDF/XML document are prohibited, i.e., it is an error for two elements to have the same value on an rdf:ID attribute.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *li-counter*

A list of li-counters. With each expecting-element’, a new counter is pushed onto *li-counter*, and so incrementing the counter of an element’s parent is done by (incf (cadr *li-counter*)).

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *object*

The predicate of the triples being processed.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *plain-literals*

An equal hash-table used for interning plain literals, that is, literals with a string component and an optional language tag.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *predicate*

The predicate of the triples being processed.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *subject*

The subject of the triples being processed.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *triple-receiver*

A function that receives the triples.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: *typed-literals*

An equal hash-table used for interning typed literals, that is, literals with a string component and a datatype.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Special Variable: +xml-namespace+

The string form of the URI XML namespace.

Package

cl-rdfxml

Source

rdfxml.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Macros

Macro: define-prefixed-name NAME PREFIX SUFFIX

define-prefixed-name name prefix suffix
name—a symbol, not evaluated
prefix, suffix—evaluated to produce strings Define-prefixed-term defines name as a constant. The value of the constant is an interned puri URI generated by concatenating the strings designated by prefix and suffix.

Package

cl-rdfxml

Source

constants.lisp (file)

Macro: define-rdf-term NAME SUFFIX

define-rdf-term name suffix
name—a symbol, not evaluated
suffix—evaluated to produce a string designator define-rdf-term defines name as a constant. The value of the new constant is a PURI uri constructed by concatenating +rdf-namespace+ and the suffix.

Package

cl-rdfxml

Source

constants.lisp (file)

Macro: define-rdfs-term NAME SUFFIX

define-rdfs-term name suffix
name—a symbol, not evaluated
suffix—evaluated to produce a string designator define-rdfs-term defines name as a constant. The value of the new constant is a PURI uri constructed by concatenating +rdfs-namepsace+ and the string designated by suffix.

Package

cl-rdfxml

Source

constants.lisp (file)

Macro: doalist ((KEY VALUE &optional PAIR) LIST &optional RESULT) &body BODY

doalist ((key value [pair]) list-form [result-form]) {tag | statement}* => result* key, value, pair—symbols
list-form, result-form,, statement—forms
tag—a go tag; not evaluated
results—if a return or return from form is executed, the values
passed from that form; otherwise, the values returned by the
result-form or nil if there is no result form.
Doalist iterates over the keys and values (and conses) in an
association list. The body of doalist is like a tagbody. doalist is
similar to a dolist, but rather than binding a single variable to each
element of a list, doalist binds key and value to the car and cdr of
each cons in an association list, and pair to the cdr.

Package

cl-rdfxml

Source

utilities.lisp (file)

Macro: expecting-element (SOURCE &optional LNAME URI) &body BODY

expecting-element (source [lname [uri]]) form*
expecting-element is a wrapper around klacks:expecting element that ensures proper binding of the *current-xml-lang* variable, so that plain literals can properly inherit the value of xml:lang attributes. Within this RDF/XML parser, expecting-element should always be used rather than klacks:expecting-element.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Macro: with-alist-restarts (THING ALIST) RESTARTABLE-FORM &body BODY

with-alist-restarts (thing alist) form &body body
thing—a symbol
alist—an association list
restartable-form—a form
body—forms
With-alist-restarts evaluates restartable form within a dynamic context in which a restart is established for each entry in alist. If the restart corresponding to an entry is invoked, then thing is bound to the entry’s cons cell, and body is evaluated, and the result of body is the result of the form. If restartable-form does not signal an error, then the result is the result of restartable form.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Macro: with-xml-lang LANG &body BODY

with-xml-lang lang form*
With-xml-lang evalutes lang to generate a new language, and evalutes body with a new binding of *current-xml-lang*. If the result of evalating lang is null, then *current-xml-lang* is rebound to its current value, if it is "", then *current-xml-lang* is bound to nil, otherwise, *current-xml-lang* is bound to the new language.

Package

cl-rdfxml

Source

rdfxml.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Functions

Function: add-fragment ID BASE

add-fragment id base => interned-uri
id—a uri fragment id
base—a uri designator
Add-fragment merges "#<id>" with base, and returns the result of interning the merged URI.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: attribute-uri ATTRIBUTE SOURCE

attribute-uri attribute source => uri
attribute—a sax:attribute
source—a cxml:source
uri—a PURI uri
Attribute-uri returns the URi associated with the attribute, as described by Section 6.1.4 Attribute Event in the RDF/XML Syntax specification. In general this is the concatenation of the namespace URI with the local name. If no namespace is provided, and the local name is ID, about, resource, parseType, or type, then the corresponding RDF term URI is returned. Otherwise, an error is signalled.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: check-for-illegal-namespace-names ATTRIBUTES

check-for-illegal-namespace-names attributes => |
attributes—a list of attributes check-for-illegal-namespace-names enforces the restriction of Section 5.1 of the RDF/XML Syntax Specification that states that "within RDF/XML documents it is not permitted to use XML namespaces whose namespace name is the RDF namespace URI reference concatenated with additional characters." If such a namespace binding is encountered, an error of type illegal-namespace-name is signalled.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: consume-whitespace SOURCE

consume-whitespace source => |
source—a cxml source
Consume-whitespace peeks and consumes events from source while the events are of type :characters and the associated string satisfies xml-whitespace-p, or if the event is :comment.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: core-syntax-term-p OBJECT

core-syntax-term-p object => boolean
core-syntax-term-p returns true if object is in +core-syntax-terms+.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: current-position SOURCE

current-position source => position
source—a cxml:source
position—a string
Current-position returns a string of the form <line>.<column> indicating the approximate position of source.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: element-attributes SOURCE

element-attributes source => attributes
source—a cxml:source
attributes—an alist
Element-attributes returns an association list whose keys are the attribute URIs of the attributes of the current element and whose values are the corresponding values. The attributes used in RDF/XML are the atributes of the element, except that xml attributes are removed (those satisfying xml-attribute-p) according to Section 6.1.2 "Element Event" in the RDF/XML Syntax Specification.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: element-literal-content SOURCE &key CONSUME-END

element-literal-content source &key consume-end => content source—a cxml:source
content—a string
consume-end—a boolean
Element-literal-content returns a string that is the literal content of the of element at source. The current event of source should be :start-element of the element whose literal content is to be extracted. The corresponding :end-element is consumed if consume-end is non-nil (the default).

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: element-uri SOURCE

element-uri source => uri
source—a cxml:source
uri—a URI
Element-uri returns the result of interning the concatenation of the current element’s uri and lname. Element-uri calls klacks:current-uri and klacks:current-lname, which signal an error if the current event is not :start-element or :end-element.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: emit-triple &key SUBJECT PREDICATE OBJECT

emit-triple &key subject predicate object => value*
subject, predicate, object—objects
Emit-triple calls the value of *triple-receiver* with the three values subject, predicate, and object. subject, predicate, and object, if not provided, default, respecively, to *subject*, *predicate*, and *object*.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: empty-property-element SOURCE ATTRIBUTES

empty-property-element source attributes => |
source—a cxml:source
attributes—an alist
Processes an empty property element, emitting the appropriate triples for property attributes on the element, as well as the triple of which the empty property is the object. The triple of which the empty property element is the object is also reified when the ID attribute is present.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: empty-property-element-components SOURCE ATTRIBUTES

empty-property-element-components source attributes => pattributes, id, thing source—a cxml:source
attributes, pattributes—association lists
id—a PURI uri or nil
thing—a indicator of the empty property element Empty-property-element-components returns as multiple values the
property attributes of the element (as an association list), an id corresponding to the element (which is NIL if no ID was provided), and
an indicator of the element, which is either a plain literal with the empty string as its lexical component, a blank node, or a URI.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: ensure-non-repeated-id ATTRIBUTES SOURCE

ensure-non-repeated-id attributes => new-attributes
attributes, new-attributes—association lists Ensure-non-repeated-id ensures that if the association list attributes contains a value for the key rdf:ID, that *element-ids* does not currently map value to t, that is, that the element has not appeared on another element. If there is an rdf:ID value and it has already been specified on another element, restarts include using this value anyway, ignoring the rdf:ID attribute, and using a different value. In any of the cases that an ID is eventually specified, *element-ids* is updated to include the new ID.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: expanded-li-uri ()

expanded-li-uri => uri
uri—a puri:uri
Expanded-li-uri returns the uri generated by incrementing the current element’s parent’s li counter and adding the fragment _n (where n is the incremented counter) to the RDF namespace.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: id-name-p STRING

id-name-p string => boolean
string—a string
Id-name-p returns true if string is a valid XML NCName, which are the only valid names attribute values for rdf:ID and rdf:nodeID.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: immediate-xml-lang SOURCE

immediate-xml-lang source => result
source—a cxml:source
result—a string or nil
Immediate-xml-lang returns the value of the xml:lang attribute on the source. Source’s current event should be :start-element. If the attribute is specified, its value, a string, is returned. If the attribute is not specified, nil is returned.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: intern-uri XURI

intern-uri xuri => uri
xuri—a uri designator
uri—a puri:uri
Intern URI is a wrapper around puri:intern-uri that provides a use-value restart, so that a new uri designator can be provided.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: language-tag-p STRING

language-tag-p string => boolean
string—a string
language-tag-p return true if the designated string is in the form specified by RFC-3066. the general form of such a language tag is <ALPHA>{1,8} [’-’ [<ALPHA> | <DIGIT>]{1,8}]*, that is, a string of at least 1 and at most 8 alphabetic characters followed by any number of subtags that are a hypen followed by at least 1 and at most 8 alphabetic or digit characters. RFC-3066 also specifies what particular strings may appear based on country codes, etc., but these constraints are not enforced here.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: literal-property-element SOURCE ATTRIBUTES TEXT

literal-property-element source attributes text => |
source—a cxml:source
attributes—an alist
text—a string
Literal-property-element emits the triple corresponding to the literal property element. Text is the literal text of the literal property. Attributes is the alist of attributes of the property-element that originally contained text.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: membership-fragment-p FRAGMENT

membership-fragment fragment => boolean
fragment—a string or NIL
Membership-fragment-p returns true if fragment is of the form "_n where n is a decimal integer greater than zero with no leading zeros." (RDF/XML Syntax Specification, Section 5.1)

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: membership-property-element-p XURI

membership-property-element-p xuri => boolean
xuri—a uri designator
Membership-property-element-p returns true if the designated URI is either rdf:li or of the form rdf:_n where n standard for a sequence of base-10 digits.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: merge-uris URI BASE

merge-uris uri base => interned-uri
uri, base—uri designators
interned-uri—a uri
merge-uris is a convenience function that merges uri and base and interns the result.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: node-element SOURCE

node-element source => node
source—a cxml source
Node-element processes the source’s current node. Source should be at a :start-element, and the element should correspond to a node. Triples represented in the node will be emitted. The node is returned.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: node-element-components SOURCE

node-element-components source => property-attributes, this source—a cxml:source
property-attributes—an alist
this—a blank node or a URI
Node-element-components returns an alist of the property-attributes on the element at which source should be positioned, and a blank node or URI indicating the object that this node element represents. At most one of rdf:ID, rdf:nodeID, and rdf:about should be specified, and an error is signalled if more than one is specified. An error is also signalled if any the URI of any attribute is not a valid property-attribute URI.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: node-element-list SOURCE &key COLLECT

node-element-list source &key collect => [nodes]
source—a cxml-source
Node-element-list processes a node element list, corresponding to production 7.2.10, ws* (nodeElement ws*)*. If collect is non-nil, then the nodes are collected and returned.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: node-element-subject THIS SOURCE

node-element-subject this base => result
this—a cons, or nil
source—a cxml:source
Node-element-subject returns the object designated by this (the second return value of node-element-attributes) and base. If this is null, then a blank-node is returned. Otherwise, the car of this should be either +rdf-node-id+, +rdf-about+, or +rdf-id+, and result is determined as follows: If the uri is +rdf-node-id+, then a blank node with an id is returned, where the id is the cdr of this. If the uri is +rdf-about+, then the cdr of the this is mergedd with base. If uri is +rdf-id+, then the cdr of this is added as a fragment to base.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: node-element-uri-p XURI &aux URI

node-element-uri-p xuri => boolean
xuri—a URI designator
Node-element-uri-p determines whether the designated URI is a valid node element URI. Node element URIs are all URIs except core syntax terms, rdf:li, and old RDF terms.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: non-parse-type-property-element SOURCE

non-parse-type-property-element source => |
source—a cxml:source
If a property element does not specify the rdf:parseType attribute, then the property-element is parsed with either resource-property-element, literal-property-element, or empty-property-element. Resource-property-element matches in the case that there is a single element within the property-element, literal-property-element matches when there is only text content within the property-element, and empty-property-element matches when there is no content whatsoever within the property-element.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: old-term-p OBJECT

old-term-p object => boolean
old-term-p returns true if object is in +old-terms+.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-type-collection-property-element SOURCE

parse-type-collection-property-element source => |
source—a cxml source
parse-type-collection-property-element processes the content of a property element that has parseType="Collection". Triples are emitted that describe the sequence of nodes within the property element.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-type-literal-property-element SOURCE

parse-type-literal-property-element source => |
source—a cxml source
Parse-type-literal-property-element binds *object* to a typed literal whose type is rdf:XMLLiteral, and whose content is the text content of the current element. If the current element has an rdf:ID attribute, then the triple is reified with the ID.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-type-property-element-id SOURCE &aux ID

parse-type-property-element-id source => id
source—a cxml:source
id—a URI or nil
Elements that specify the rdf:parseType attribute may only have one other attribute, rdf:ID. This function extracts the value of the rdf:ID attribute if specified and returns a URI which is the base uri with the value of the ID attribute as a fragment id or nil if there is no such attribute. An error is signalled if rdf:ID is specified more than once, or if an attribute other than rdf:parseType or rdf:ID is specified.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: parse-type-resource-property-element SOURCE

parse-type-resource-property-element source => |
source—a cxml source
parse-type-resource-property-element processes a property element with parseType Resource, according to production 7.2.18.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: peek-skipping-comments SOURCE

peek-skipping-comments source => result*
souce—a cxml:source
Peek-skipping-comments returns the same values that klacks:peek returns, with the exception that if the next event from source is :comments, the event is consumed. The values of the first non-comment event are returned.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: prefixp PREFIX SEQUENCE &key TEST

prefixp prefix sequence => boolean, properp
prefix, string—sequences
properp—a boolean
prefixp returns true if prefix is a prefix of sequence. Elements of prefix and sequence are compared using test. A second value, properp, is true when the length of the prefix is less than the length of the sequence, regardless of whether prefix is actually a prefix of sequence.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: prompt-for-line MESSAGE &rest ARGS

prompt-for-line message &rest args => line, okp
message—a format control
args—format arguments for message
line—a string
okp—a boolean
Prompt-for-line displays the prompt specified by message and args on *query-io* and reads a line from *query-io*. If the reading is successful, the line is returned and okp is true. If reading fails, say, from an EOF, then line is the empty string, and okp is false.

Package

cl-rdfxml

Source

utilities.lisp (file)

Function: prompt-for-uri ()

prompt-for-uri => result
result—a list of two values.
prompt-for-uri returns the list of values that result from invoking prompt-for-line with the message "Enter a URI:".

Package

cl-rdfxml

Source

utilities.lisp (file)

Function: property-attribute-uri-p XURI &aux URI

property-attribute-uri-p xuri => boolean
xuri—a URI designator
Property-attribute-uri-p determines whether the designated URI is a valid property attribute URI. Property attribute URIs are all URIs except core syntax terms, rdf:Description, rdf:li, and old RDF terms.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: property-element SOURCE

property-element source => |
source—a cxml source
Property-element processes the current property element, according to production 7.2.14. There are actually a number of different kinds of property elements that can appear, and so process-property element processes enough of the element to determine which type, and then dispatches to more specific property element processing functions.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: property-element-list SOURCE

property-element-list source => |
source—a cxml source
Property-element-list processes a property element list, corresponding to production 7.2.13, ws* (propertyElt ws*)*.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: property-element-uri-p XURI &aux URI

property-element-uri-p xuri => boolean
xuri—a URI designator
Property-element-uri-p determines whether the designated URI is a valid property element URI. Property element URIs are all URIs except core syntax terms, rdf:Description, and old RDF terms.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: rdf-name-p XURI

rdf-name-p xuri => boolean
xuri—a URI designator
Rdf-name-p returns true if the designated URI is an RDF name, including the infinite set of rdf:_n names.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: rdf-namespace-prefixed-p XURI

rdf-namespace-prefixed xuri => boolean
xuri—a uri designator
Rdf-namespace-prefixed-p returns true if xuri is prefixed with +rdf-namespace+.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: reify-triple TRIPLE-URI

reify-triple triple-uri => |
triple-uri—a PURI URI
Reify-triple emits the four triples that reify the triple <*subject* *predicate* *object*>. Triple-uri is the URI of the reified triple.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: resource-property-element SOURCE ATTRIBUTES

resource-property-element source attributes => |
source—a cxml:source
attributes—an alist
resource-property-element finished the processing of a resource property element that should have begun with non-parse-type-property-element. source should be positioned at the :start-element of the node element within the property-element. resource-property-element does not consume trailing whitespace after the node element. The only attribute permitted on the resource property-element is rdf:ID, and an error is signalled if other attributes are specified, or rdf:ID is specified more than once.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: strcat &rest STRINGS

strcat string* => string
strings, string—strings
strcat returns the concatentation of the strings.

Package

cl-rdfxml

Source

utilities.lisp (file)

Function: syntax-term-p OBJECT

syntax-term-p object => boolean
syntax-term-p returns true if object is a syntax term (a core syntax term, rdf:Description, or rdf:li).

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: unique-attributes ATTRIBUTES SOURCE

unique-attributes attributes source => uniques
attributes, uniques—associaation lists
source—a cxml:source
Unique-attributes returns an association list that no entries with the same key. The entries of the new association list are those of the original association list, but in the event that a duplicate is detected, an error of type duplicate-attribute is signalled, and various options are provided.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: xml-attribute-p ATTRIBUTE

xml-attribute-p attribute => boolean
attribute—a sax:attribute
Xml-attribute-p returns true if attribute has a prefix that begins with "xml", or if the attribute has no prefix and the attribute’s local name begins with "xml". or if attribute satisfies xml-lang-attribute-p.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: xml-lang-attribute-p ATTRIBUTE

xml-lang-attribute-p attribute => boolean
attribute—a sax:attribute
xml-lang-attribute-p returns true if attribute has a local-name "name" and a namespace-uri +xml-namespace+.

Package

cl-rdfxml

Source

rdfxml.lisp (file)

Function: xml-whitespace-p STRING

xml-whitespace-p string => boolean
string—a string-designator
xml-whitespace-p returns true if every element of the string is an XML whitespace character (i.e., is #x20, #x9, #xD, or #xA), or if string is the empty string.

Package

cl-rdfxml

Source

rdfxml.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Generic functions

Generic Function: attribute CONDITION
Package

cl-rdfxml

Methods
Method: attribute (CONDITION prohibited-attribute)
Source

rdfxml.lisp (file)

Method: attribute (CONDITION duplicate-attribute)
Source

rdfxml.lisp (file)

Method: attribute (CONDITION invalid-attribute-value)
Source

rdfxml.lisp (file)

Generic Function: attributes CONDITION
Package

cl-rdfxml

Methods
Method: attributes (CONDITION mutually-exclusive-attributes)
Source

rdfxml.lisp (file)

Generic Function: characters CONDITION
Package

cl-rdfxml

Methods
Method: characters (CONDITION unexpected-characters)
Source

rdfxml.lisp (file)

Generic Function: name CONDITION
Package

cl-rdfxml

Methods
Method: name (CONDITION non-namespaced-name)
Source

rdfxml.lisp (file)

Method: name (CONDITION rdf-prefixed-non-rdf-name)
Source

rdfxml.lisp (file)

Generic Function: parse-type CONDITION
Package

cl-rdfxml

Methods
Method: parse-type (CONDITION other-parse-type)
Source

rdfxml.lisp (file)

Generic Function: prefix CONDITION
Package

cl-rdfxml

Methods
Method: prefix (CONDITION illegal-namespace-name)
Source

rdfxml.lisp (file)

Generic Function: source CONDITION
Package

cl-rdfxml

Methods
Method: source (CONDITION rdfxml-error)
Source

rdfxml.lisp (file)

Generic Function: tag CONDITION
Package

cl-rdfxml

Methods
Method: tag (CONDITION invalid-language-tag)
Source

rdfxml.lisp (file)

Generic Function: uri CONDITION
Package

cl-rdfxml

Methods
Method: uri (CONDITION bad-uri)
Source

rdfxml.lisp (file)

Method: uri (CONDITION illegal-namespace-name)
Source

rdfxml.lisp (file)

Generic Function: value CONDITION
Package

cl-rdfxml

Methods
Method: value (CONDITION invalid-attribute-value)
Source

rdfxml.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L  
Index Entry  Section

C
cl-rdfxml.asd: The cl-rdfxml<dot>asd file
cl-rdfxml/constants.lisp: The cl-rdfxml/constants<dot>lisp file
cl-rdfxml/package.lisp: The cl-rdfxml/package<dot>lisp file
cl-rdfxml/rdfxml.lisp: The cl-rdfxml/rdfxml<dot>lisp file
cl-rdfxml/utilities.lisp: The cl-rdfxml/utilities<dot>lisp file

F
File, Lisp, cl-rdfxml.asd: The cl-rdfxml<dot>asd file
File, Lisp, cl-rdfxml/constants.lisp: The cl-rdfxml/constants<dot>lisp file
File, Lisp, cl-rdfxml/package.lisp: The cl-rdfxml/package<dot>lisp file
File, Lisp, cl-rdfxml/rdfxml.lisp: The cl-rdfxml/rdfxml<dot>lisp file
File, Lisp, cl-rdfxml/utilities.lisp: The cl-rdfxml/utilities<dot>lisp file

L
Lisp File, cl-rdfxml.asd: The cl-rdfxml<dot>asd file
Lisp File, cl-rdfxml/constants.lisp: The cl-rdfxml/constants<dot>lisp file
Lisp File, cl-rdfxml/package.lisp: The cl-rdfxml/package<dot>lisp file
Lisp File, cl-rdfxml/rdfxml.lisp: The cl-rdfxml/rdfxml<dot>lisp file
Lisp File, cl-rdfxml/utilities.lisp: The cl-rdfxml/utilities<dot>lisp file

Jump to:   C   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   A   B   C   D   E   F   G   I   L   M   N   O   P   R   S   T   U   V   W   X  
Index Entry  Section

A
add-fragment: Internal functions
attribute: Internal generic functions
attribute: Internal generic functions
attribute: Internal generic functions
attribute: Internal generic functions
attribute-uri: Internal functions
attributes: Internal generic functions
attributes: Internal generic functions

B
blank-node: Exported functions
blank-node-id: Exported generic functions
blank-node-id: Exported generic functions

C
characters: Internal generic functions
characters: Internal generic functions
check-for-illegal-namespace-names: Internal functions
consume-whitespace: Internal functions
core-syntax-term-p: Internal functions
current-position: Internal functions

D
define-prefixed-name: Internal macros
define-rdf-term: Internal macros
define-rdfs-term: Internal macros
doalist: Internal macros

E
element-attributes: Internal functions
element-literal-content: Internal functions
element-uri: Internal functions
emit-triple: Internal functions
empty-property-element: Internal functions
empty-property-element-components: Internal functions
ensure-non-repeated-id: Internal functions
expanded-li-uri: Internal functions
expecting-element: Internal macros

F
Function, add-fragment: Internal functions
Function, attribute-uri: Internal functions
Function, blank-node: Exported functions
Function, check-for-illegal-namespace-names: Internal functions
Function, consume-whitespace: Internal functions
Function, core-syntax-term-p: Internal functions
Function, current-position: Internal functions
Function, element-attributes: Internal functions
Function, element-literal-content: Internal functions
Function, element-uri: Internal functions
Function, emit-triple: Internal functions
Function, empty-property-element: Internal functions
Function, empty-property-element-components: Internal functions
Function, ensure-non-repeated-id: Internal functions
Function, expanded-li-uri: Internal functions
Function, id-name-p: Internal functions
Function, ignore-attribute: Exported functions
Function, ignore-attributes: Exported functions
Function, ignore-characters: Exported functions
Function, ignore-language: Exported functions
Function, immediate-xml-lang: Internal functions
Function, intern-plain-literal: Exported functions
Function, intern-typed-literal: Exported functions
Function, intern-uri: Internal functions
Function, language-tag-p: Internal functions
Function, literal-property-element: Internal functions
Function, membership-fragment-p: Internal functions
Function, membership-property-element-p: Internal functions
Function, merge-uris: Internal functions
Function, node-element: Internal functions
Function, node-element-components: Internal functions
Function, node-element-list: Internal functions
Function, node-element-subject: Internal functions
Function, node-element-uri-p: Internal functions
Function, non-parse-type-property-element: Internal functions
Function, old-term-p: Internal functions
Function, parse-as-typed-literal: Exported functions
Function, parse-document: Exported functions
Function, parse-type-collection-property-element: Internal functions
Function, parse-type-literal-property-element: Internal functions
Function, parse-type-property-element-id: Internal functions
Function, parse-type-resource-property-element: Internal functions
Function, parse-uri-non-strictly: Exported functions
Function, peek-skipping-comments: Internal functions
Function, prefixp: Internal functions
Function, prompt-for-line: Internal functions
Function, prompt-for-uri: Internal functions
Function, property-attribute-uri-p: Internal functions
Function, property-element: Internal functions
Function, property-element-list: Internal functions
Function, property-element-uri-p: Internal functions
Function, rdf-name-p: Internal functions
Function, rdf-namespace-prefixed-p: Internal functions
Function, reify-triple: Internal functions
Function, resource-property-element: Internal functions
Function, strcat: Internal functions
Function, syntax-term-p: Internal functions
Function, unique-attributes: Internal functions
Function, xml-attribute-p: Internal functions
Function, xml-lang-attribute-p: Internal functions
Function, xml-whitespace-p: Internal functions

G
Generic Function, attribute: Internal generic functions
Generic Function, attributes: Internal generic functions
Generic Function, blank-node-id: Exported generic functions
Generic Function, characters: Internal generic functions
Generic Function, literal-datatype: Exported generic functions
Generic Function, literal-language: Exported generic functions
Generic Function, literal-string: Exported generic functions
Generic Function, name: Internal generic functions
Generic Function, parse-type: Internal generic functions
Generic Function, prefix: Internal generic functions
Generic Function, source: Internal generic functions
Generic Function, tag: Internal generic functions
Generic Function, uri: Internal generic functions
Generic Function, value: Internal generic functions

I
id-name-p: Internal functions
ignore-attribute: Exported functions
ignore-attributes: Exported functions
ignore-characters: Exported functions
ignore-language: Exported functions
immediate-xml-lang: Internal functions
intern-plain-literal: Exported functions
intern-typed-literal: Exported functions
intern-uri: Internal functions

L
language-tag-p: Internal functions
literal-datatype: Exported generic functions
literal-datatype: Exported generic functions
literal-language: Exported generic functions
literal-language: Exported generic functions
literal-property-element: Internal functions
literal-string: Exported generic functions
literal-string: Exported generic functions

M
Macro, define-prefixed-name: Internal macros
Macro, define-rdf-term: Internal macros
Macro, define-rdfs-term: Internal macros
Macro, doalist: Internal macros
Macro, expecting-element: Internal macros
Macro, with-alist-restarts: Internal macros
Macro, with-xml-lang: Internal macros
membership-fragment-p: Internal functions
membership-property-element-p: Internal functions
merge-uris: Internal functions
Method, attribute: Internal generic functions
Method, attribute: Internal generic functions
Method, attribute: Internal generic functions
Method, attributes: Internal generic functions
Method, blank-node-id: Exported generic functions
Method, characters: Internal generic functions
Method, literal-datatype: Exported generic functions
Method, literal-language: Exported generic functions
Method, literal-string: Exported generic functions
Method, name: Internal generic functions
Method, name: Internal generic functions
Method, parse-type: Internal generic functions
Method, prefix: Internal generic functions
Method, source: Internal generic functions
Method, tag: Internal generic functions
Method, uri: Internal generic functions
Method, uri: Internal generic functions
Method, value: Internal generic functions

N
name: Internal generic functions
name: Internal generic functions
name: Internal generic functions
node-element: Internal functions
node-element-components: Internal functions
node-element-list: Internal functions
node-element-subject: Internal functions
node-element-uri-p: Internal functions
non-parse-type-property-element: Internal functions

O
old-term-p: Internal functions

P
parse-as-typed-literal: Exported functions
parse-document: Exported functions
parse-type: Internal generic functions
parse-type: Internal generic functions
parse-type-collection-property-element: Internal functions
parse-type-literal-property-element: Internal functions
parse-type-property-element-id: Internal functions
parse-type-resource-property-element: Internal functions
parse-uri-non-strictly: Exported functions
peek-skipping-comments: Internal functions
prefix: Internal generic functions
prefix: Internal generic functions
prefixp: Internal functions
prompt-for-line: Internal functions
prompt-for-uri: Internal functions
property-attribute-uri-p: Internal functions
property-element: Internal functions
property-element-list: Internal functions
property-element-uri-p: Internal functions

R
rdf-name-p: Internal functions
rdf-namespace-prefixed-p: Internal functions
reify-triple: Internal functions
resource-property-element: Internal functions

S
source: Internal generic functions
source: Internal generic functions
strcat: Internal functions
syntax-term-p: Internal functions

T
tag: Internal generic functions
tag: Internal generic functions

U
unique-attributes: Internal functions
uri: Internal generic functions
uri: Internal generic functions
uri: Internal generic functions

V
value: Internal generic functions
value: Internal generic functions

W
with-alist-restarts: Internal macros
with-xml-lang: Internal macros

X
xml-attribute-p: Internal functions
xml-lang-attribute-p: Internal functions
xml-whitespace-p: Internal functions

Jump to:   A   B   C   D   E   F   G   I   L   M   N   O   P   R   S   T   U   V   W   X  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *   +  
A   C   D   I   L   N   P   S   T   U   V  
Index Entry  Section

*
*blank-nodes*: Internal special variables
*coerce-datatyped-empty-properties*: Exported special variables
*current-xml-lang*: Internal special variables
*element-ids*: Internal special variables
*li-counter*: Internal special variables
*object*: Internal special variables
*parse-uris-strictly*: Exported special variables
*plain-literals*: Internal special variables
*predicate*: Internal special variables
*subject*: Internal special variables
*triple-receiver*: Internal special variables
*typed-literals*: Internal special variables
*warn-on-non-namespaced-names*: Exported special variables
*warn-on-parse-type-other*: Exported special variables
*warn-on-rdf-prefixed-non-rdf-names*: Exported special variables

+
+rdf-about+: Exported special variables
+rdf-about-each+: Exported special variables
+rdf-about-each-prefix+: Exported special variables
+rdf-alt+: Exported special variables
+rdf-bag+: Exported special variables
+rdf-bag-id+: Exported special variables
+rdf-datatype+: Exported special variables
+rdf-description+: Exported special variables
+rdf-first+: Exported special variables
+rdf-id+: Exported special variables
+rdf-li+: Exported special variables
+rdf-list+: Exported special variables
+rdf-namespace+: Exported special variables
+rdf-nil+: Exported special variables
+rdf-node-id+: Exported special variables
+rdf-object+: Exported special variables
+rdf-parse-type+: Exported special variables
+rdf-predicate+: Exported special variables
+rdf-property+: Exported special variables
+rdf-rdf+: Exported special variables
+rdf-resource+: Exported special variables
+rdf-rest+: Exported special variables
+rdf-seq+: Exported special variables
+rdf-statement+: Exported special variables
+rdf-subject+: Exported special variables
+rdf-type+: Exported special variables
+rdf-value+: Exported special variables
+rdf-xml-literal+: Exported special variables
+rdfs-class+: Exported special variables
+rdfs-comment+: Exported special variables
+rdfs-container+: Exported special variables
+rdfs-container-membership-property+: Exported special variables
+rdfs-datatype+: Exported special variables
+rdfs-domain+: Exported special variables
+rdfs-is-defined-by+: Exported special variables
+rdfs-label+: Exported special variables
+rdfs-literal+: Exported special variables
+rdfs-member+: Exported special variables
+rdfs-namespace+: Exported special variables
+rdfs-range+: Exported special variables
+rdfs-resource+: Exported special variables
+rdfs-see-also+: Exported special variables
+rdfs-subclass-of+: Exported special variables
+rdfs-subproperty-of+: Exported special variables
+xml-namespace+: Internal special variables

A
attribute: Exported conditions
attribute: Exported conditions
attribute: Exported conditions
attributes: Exported conditions

C
characters: Exported conditions

D
datatype: Exported classes

I
id: Exported classes

L
language: Exported classes

N
name: Exported conditions
name: Exported conditions

P
parse-type: Exported conditions
prefix: Exported conditions

S
Slot, attribute: Exported conditions
Slot, attribute: Exported conditions
Slot, attribute: Exported conditions
Slot, attributes: Exported conditions
Slot, characters: Exported conditions
Slot, datatype: Exported classes
Slot, id: Exported classes
Slot, language: Exported classes
Slot, name: Exported conditions
Slot, name: Exported conditions
Slot, parse-type: Exported conditions
Slot, prefix: Exported conditions
Slot, source: Exported conditions
Slot, string: Exported classes
Slot, tag: Exported conditions
Slot, uri: Exported conditions
Slot, uri: Exported conditions
Slot, value: Exported conditions
source: Exported conditions
Special Variable, *blank-nodes*: Internal special variables
Special Variable, *coerce-datatyped-empty-properties*: Exported special variables
Special Variable, *current-xml-lang*: Internal special variables
Special Variable, *element-ids*: Internal special variables
Special Variable, *li-counter*: Internal special variables
Special Variable, *object*: Internal special variables
Special Variable, *parse-uris-strictly*: Exported special variables
Special Variable, *plain-literals*: Internal special variables
Special Variable, *predicate*: Internal special variables
Special Variable, *subject*: Internal special variables
Special Variable, *triple-receiver*: Internal special variables
Special Variable, *typed-literals*: Internal special variables
Special Variable, *warn-on-non-namespaced-names*: Exported special variables
Special Variable, *warn-on-parse-type-other*: Exported special variables
Special Variable, *warn-on-rdf-prefixed-non-rdf-names*: Exported special variables
Special Variable, +rdf-about+: Exported special variables
Special Variable, +rdf-about-each+: Exported special variables
Special Variable, +rdf-about-each-prefix+: Exported special variables
Special Variable, +rdf-alt+: Exported special variables
Special Variable, +rdf-bag+: Exported special variables
Special Variable, +rdf-bag-id+: Exported special variables
Special Variable, +rdf-datatype+: Exported special variables
Special Variable, +rdf-description+: Exported special variables
Special Variable, +rdf-first+: Exported special variables
Special Variable, +rdf-id+: Exported special variables
Special Variable, +rdf-li+: Exported special variables
Special Variable, +rdf-list+: Exported special variables
Special Variable, +rdf-namespace+: Exported special variables
Special Variable, +rdf-nil+: Exported special variables
Special Variable, +rdf-node-id+: Exported special variables
Special Variable, +rdf-object+: Exported special variables
Special Variable, +rdf-parse-type+: Exported special variables
Special Variable, +rdf-predicate+: Exported special variables
Special Variable, +rdf-property+: Exported special variables
Special Variable, +rdf-rdf+: Exported special variables
Special Variable, +rdf-resource+: Exported special variables
Special Variable, +rdf-rest+: Exported special variables
Special Variable, +rdf-seq+: Exported special variables
Special Variable, +rdf-statement+: Exported special variables
Special Variable, +rdf-subject+: Exported special variables
Special Variable, +rdf-type+: Exported special variables
Special Variable, +rdf-value+: Exported special variables
Special Variable, +rdf-xml-literal+: Exported special variables
Special Variable, +rdfs-class+: Exported special variables
Special Variable, +rdfs-comment+: Exported special variables
Special Variable, +rdfs-container+: Exported special variables
Special Variable, +rdfs-container-membership-property+: Exported special variables
Special Variable, +rdfs-datatype+: Exported special variables
Special Variable, +rdfs-domain+: Exported special variables
Special Variable, +rdfs-is-defined-by+: Exported special variables
Special Variable, +rdfs-label+: Exported special variables
Special Variable, +rdfs-literal+: Exported special variables
Special Variable, +rdfs-member+: Exported special variables
Special Variable, +rdfs-namespace+: Exported special variables
Special Variable, +rdfs-range+: Exported special variables
Special Variable, +rdfs-resource+: Exported special variables
Special Variable, +rdfs-see-also+: Exported special variables
Special Variable, +rdfs-subclass-of+: Exported special variables
Special Variable, +rdfs-subproperty-of+: Exported special variables
Special Variable, +xml-namespace+: Internal special variables
string: Exported classes

T
tag: Exported conditions

U
uri: Exported conditions
uri: Exported conditions

V
value: Exported conditions

Jump to:   *   +  
A   C   D   I   L   N   P   S   T   U   V  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   B   C   D   I   L   M   N   O   P   R   S   T   U  
Index Entry  Section

B
bad-node-element-uri: Exported conditions
bad-property-element-uri: Exported conditions
bad-uri: Exported conditions
blank-node: Exported classes

C
cl-rdfxml: The cl-rdfxml system
cl-rdfxml: The cl-rdfxml package
Class, blank-node: Exported classes
Class, literal: Exported classes
Class, plain-literal: Exported classes
Class, typed-literal: Exported classes
Condition, bad-node-element-uri: Exported conditions
Condition, bad-property-element-uri: Exported conditions
Condition, bad-uri: Exported conditions
Condition, datatyped-empty-property: Exported conditions
Condition, duplicate-attribute: Exported conditions
Condition, illegal-namespace-name: Exported conditions
Condition, invalid-attribute-value: Exported conditions
Condition, invalid-language-tag: Exported conditions
Condition, mutually-exclusive-attributes: Exported conditions
Condition, non-namespaced-attribute: Exported conditions
Condition, non-namespaced-name: Exported conditions
Condition, non-nc-name-id: Exported conditions
Condition, other-parse-type: Exported conditions
Condition, prohibited-attribute: Exported conditions
Condition, rdf-prefixed-non-rdf-name: Exported conditions
Condition, rdfxml-error: Exported conditions
Condition, rdfxml-warning: Exported conditions
Condition, repeated-id: Exported conditions
Condition, unexpected-characters: Exported conditions

D
datatyped-empty-property: Exported conditions
duplicate-attribute: Exported conditions

I
illegal-namespace-name: Exported conditions
invalid-attribute-value: Exported conditions
invalid-language-tag: Exported conditions

L
literal: Exported classes

M
mutually-exclusive-attributes: Exported conditions

N
non-namespaced-attribute: Exported conditions
non-namespaced-name: Exported conditions
non-nc-name-id: Exported conditions

O
other-parse-type: Exported conditions

P
Package, cl-rdfxml: The cl-rdfxml package
plain-literal: Exported classes
prohibited-attribute: Exported conditions

R
rdf-prefixed-non-rdf-name: Exported conditions
rdfxml-error: Exported conditions
rdfxml-warning: Exported conditions
repeated-id: Exported conditions

S
System, cl-rdfxml: The cl-rdfxml system

T
typed-literal: Exported classes

U
unexpected-characters: Exported conditions

Jump to:   B   C   D   I   L   M   N   O   P   R   S   T   U