- class DeserializeAndAddElement(Ft.Xml.Xslt.StylesheetTree.XsltElement)
-
Deserializes an RDF document into statements, and adds them to a
scope
The content of the frdf:deserialize-and-add element is a template for the
RDF/XML source from which the statements are parsed.
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class XsltElement
Members
- content = <Ft.Xml.Xslt.ContentInfo.Rep instance>
- legalAttrs = {'base-path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class DeserializeAndRemoveElement(Ft.Xml.Xslt.StylesheetTree.XsltElement)
-
Deserializes an RDF document into statements, and removes any statements
in the given scope with matching triple values.
The content of the frdf:deserialize-and-remove element is a template for
the RDF/XML source from which the statements are parsed.
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class XsltElement
Members
- content = <Ft.Xml.Xslt.ContentInfo.Rep instance>
- legalAttrs = {'base-path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>}
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfAddElement(RdfBaseElement)
-
Adds statements to the repository model. The subject,
predicates and objects can be strings or node sets
node sets are converted to a list of strings by taking
the string value of each item. String values are treated
a list with one string. The cartesian product of
statements that come from the list of subject, predicate
and object strings are all added to the model using the
given scope and statement URI.
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class RdfBaseElement
Methods inherited from class RdfBaseElement
Members inherited from class RdfBaseElement
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfBaseElement(Ft.Xml.Xslt.StylesheetTree.XsltElement)
-
Methods
- getStatementInfo(self, context)
__init__,
__str__,
appendChild,
expandQName,
insertChild,
instantiate,
parseAVT,
parseExpression,
parsePattern,
processChildren,
splitQName
Members
- content = <Ft.Xml.Xslt.ContentInfo.Atom instance>
- legalAttrs = {'o': <Ft.Xml.Xslt.AttributeInfo.Expression instance>, 'p': <Ft.Xml.Xslt.AttributeInfo.Expression instance>, 's': <Ft.Xml.Xslt.AttributeInfo.Expression instance>, 'scope': <Ft.Xml.Xslt.AttributeInfo.StringExpression instance>, 'stmt-uri': <Ft.Xml.Xslt.AttributeInfo.StringExpression instance>, 'type': <Ft.Xml.Xslt.AttributeInfo.Expression instance>}
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfCompleteElement(RdfPatternBaseElement)
-
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class RdfPatternBaseElement
Methods inherited from class RdfBaseElement
Members inherited from class RdfBaseElement
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfPatternBaseElement(RdfBaseElement)
-
Methods
- getRdfPatternCriteria(self, context)
Methods inherited from class RdfBaseElement
__init__,
__str__,
appendChild,
expandQName,
insertChild,
instantiate,
parseAVT,
parseExpression,
parsePattern,
processChildren,
splitQName
Members
- legalAttrs = {'o': <Ft.Xml.Xslt.AttributeInfo.Expression instance>, 'o-flags': <Ft.Xml.Xslt.AttributeInfo.ChoiceAvt instance>, 'p': <Ft.Xml.Xslt.AttributeInfo.Expression instance>, 'p-flags': <Ft.Xml.Xslt.AttributeInfo.ChoiceAvt instance>, 's': <Ft.Xml.Xslt.AttributeInfo.Expression instance>, 's-flags': <Ft.Xml.Xslt.AttributeInfo.ChoiceAvt instance>, 'scope': <Ft.Xml.Xslt.AttributeInfo.StringExpression instance>, 'scope-flags': <Ft.Xml.Xslt.AttributeInfo.ChoiceAvt instance>, 'stmt-uri': <Ft.Xml.Xslt.AttributeInfo.StringExpression instance>, 'stmt-uri-flags': <Ft.Xml.Xslt.AttributeInfo.ChoiceAvt instance>, ...}
Members inherited from class RdfBaseElement
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfRemoveElement(RdfPatternBaseElement)
-
Removes statements to the repository model. The subject,
predicates and objects can be strings or node sets
node sets are converted to a list of strings by taking
the string value of each item. String values are treated
a list with one string. The cartesian product of
statements that come from the list of subject, predicate
and object strings and that match the given scope and
statement URI are all removed from the model.
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class RdfPatternBaseElement
Methods inherited from class RdfBaseElement
Members inherited from class RdfBaseElement
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfVersaAssignElement(Ft.Xml.Xslt.StylesheetTree.XsltElement)
-
Execute a Versa query and assign the result to a Versa variable,
for use in further queries. The variable becomes bound in the
Versa context for the current stylesheet invokation, and thus will
be defined on all Versa queries performed subsequently, through
<frdf:versa-query> or <frdf:versa-assign>.
The content of the frdf:versa-assign element is a template for the
extra namespace mappings for the query (see /ftss/dashboard/NsMappings.xml
for an example of the xml format).
For example, if you have the following:
<frdf:versa-assign query="type(rdfs:Class)" name="classes"/>
You can later execute
<frdf:versa-query query="$classes - rdfs:label -> *"/>
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class XsltElement
Members
- content = <Ft.Xml.Xslt.ContentInfo.Rep instance>
- legalAttrs = {'name': <Ft.Xml.Xslt.AttributeInfo.QNameAvt instance>, 'query': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'scope': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>}
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfVersaQueryElement(Ft.Xml.Xslt.StylesheetTree.XsltElement)
-
Execute a Versa query and put the results in serialized XML form to the
XSLT processor output.
The content of the frdf:versa-query element is a template for the
extra namespace mappings for the query (see /ftss/dashboard/NsMappings.xml
for an example of the xml format).
The form of the Versa output is as documented in
http://rdfinference.org/versa-xml.
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class XsltElement
Members
- content = <Ft.Xml.Xslt.ContentInfo.Rep instance>
- legalAttrs = {'query': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'scope': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>}
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root
- class RdfVisualizeElement(Ft.Xml.Xslt.StylesheetTree.XsltElement)
-
This extension element uses GraphViz to generate a diagram of a given
resource, a set of resources in a particular scope, or of the entire
system model. It adds an HTML imagemap (a chunk of text that can be
placed in a MAP element) to the result tree, and has the side effect
of generating in the repository an SVG or JPEG image resource
representing the corresponding diagram.
output-path specifies the repo path of the diagram to generate. If the
resource exists already, its content will be overwritten.
If provided, resourcePath must to refer to either a specific resource in
the system model or an RDF document in the repository. If it refers to an
RDF document, then all RDF statements with that document's URI as their
scope will be graphed. If the resourcePath refers to any other kind of
resource, then only statements about it will be graphed. If no
resourcePath is specified, then the entire system model will be graphed.
The image map text placed in the result tree uses the uriFormat string
to generate (by appying the uris of all resources against this string)
the links for all resources in the image. imagemap information is
generated and returned only if the uriFormat string is specified.
Most RDF graphs are width heavy and the visualizer can be told to rotate
the image 90 degrees which can be helpful far larger graphs (which could
great widths). This is specified by the rotate attribute. If present,
the graph is rotated, otherwise it isn't.
The max-arcs attribute specifies the maximum number of arcs. If the graph
requires more arcs, then nothing will be generated at all.
This element can also take a versa query result as its child nodes. In
this case, all the resources in the result are graphed and resource-path
is ignored.
Methods
- instantiate(self, context, processor)
- Overrides: instantiate from class XsltElement
Members
- content = <Ft.Xml.Xslt.ContentInfo.Rep instance>
- legalAttrs = {'graph-vis': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'map-name': <Ft.Xml.Xslt.AttributeInfo.IdAvt instance>, 'max-arcs': <Ft.Xml.Xslt.AttributeInfo.NumberAvt instance>, 'namespaces': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'output-path': <Ft.Xml.Xslt.AttributeInfo.UriReferenceAvt instance>, 'resourcePath': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>, 'rotate': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'scoped': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'svg': <Ft.Xml.Xslt.AttributeInfo.YesNoAvt instance>, 'uri-format': <Ft.Xml.Xslt.AttributeInfo.StringAvt instance>}
attributes,
baseUri,
children,
columnNumber,
doesIdle,
doesPrime,
doesSetup,
expandedName,
importIndex,
lineNumber,
nodeName,
parent,
root