Class: XML_GRDDL_Driver
Source Location: /XML_GRDDL-0.2.0/XML/GRDDL/Driver.php
An abstract driver for GRDDL
Author(s):
Version:
- Release: @package_version@
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 96]
void __construct(
[mixed[]
$options = array()])
|
|
Make a new instance of XML_GRRDL_Driver directly
Overridden in child classes as:
- XML_GRDDL_Driver_Xsl::__construct()
- Make a new instance of XML_GRRDL_Driver_XSL directly
Parameters:
appendProfiles [line 790]
string appendProfiles(
string
$xhtml, [string[]
$profiles = array()])
|
|
Append one or more profiles to a HTML document.
Parameters:
crawl [line 737]
string crawl(
string
$url)
|
|
Fetch, inspect, parse and merge a URL. If you just want to get RDF, and you want to get it now...
Parameters:
determineBaseURI [line 404]
string determineBaseURI(
SimpleXMLElement
$sxe, string
$originalUrl)
|
|
Inspect a DOMDocument and kludge together a base URI. Otherwise, try to use the existing original document location.
Parameters:
discoverDocumentTransformations [line 451]
string[] discoverDocumentTransformations(
SimpleXMLElement
$sxe, [string
$originalUrl = null])
|
|
Given an XPath[XPATH] root node N with root element E, if the expression *[local-name()="transformation" and namespace-uri()= "http://www.w3.org/2003/g/data-view#"] matches an attribute of an element E, then for each space-separated token REF in the value of that attribute, the resource identified[WEBARCH] by the absolute form (see section 5.2 Relative Resolution in [RFC3986]) of REF with respect to the base IRI[RFC3987],[XMLBASE] of E is a GRDDL transformation of N. Space-separated tokens are the maximal non-empty subsequences not containing the whitespace characters #x9, #xA, #xD or #x20.
Parameters:
discoverHTMLProfileTransformations [line 297]
string[] discoverHTMLProfileTransformations(
SimpleXMLElement
$sxe, [string
$originalUrl = null])
|
|
Look for profileTransformations (via PROFILE tags).
Parameters:
discoverHTMLTransformations [line 271]
string[] discoverHTMLTransformations(
SimpleXMLElement
$sxe, [string
$originalUrl = null])
|
|
Look for transformations hidden in A, LINK tag.
Parameters:
discoverNamespaceTransformations [line 475]
string[] discoverNamespaceTransformations(
SimpleXMLElement
$sxe)
|
|
Transformations can be associated not only with individual documents but also with whole dialects that share an XML namespace. Any resource available for retrieval from a namespace URI is a namespace document (cf. section 4.5.4. Namespace documents in [WEBARCH]). For example, a namespace document may have an XML Schema representation or an RDF Schema representation, or perhaps both, using content negotiation. To associate a GRDDL transformation with a whole dialect, include a grddl:namespaceTransformation property in a GRDDL result of the namespace document.
Parameters:
discoverTransformations [line 232]
string[] discoverTransformations(
SimpleXMLElement
$sxe, string
$originalUrl, string
$xpath, string
$attributeName, [string
$namespace = null])
|
|
Discover transformations in the provided document by using the xpath provided.
Parameters:
fetch [line 534]
string fetch(
string
$path, [string
$preferredExtension = 'html'])
|
|
Fetch a URL, specifically asking for XML or RDF where available.
Parameters:
findRedirect [line 764]
string findRedirect(
string
$url)
|
|
If this URL has been fetched before, return its resolved location (after all redirects)
Parameters:
inspect [line 158]
string[] inspect(
string
$xml, [string
$originalUrl = null])
|
|
Inspect raw XML for transformations, according to options
Parameters:
isURI [line 499]
bool isURI(
string
$string)
|
|
Inspect a string to see if it is a valid URL
Parameters:
knownNamespaceTransformations [line 361]
string[] knownNamespaceTransformations(
string
$nsUrl)
|
|
Fetch a URL, which should be a namespace document of some description. Look for namespaceTransformations
Parameters:
logRedirect [line 777]
string logRedirect(
string
$url, string
$otherUrl)
|
|
Record a redirection for a url
Parameters:
merge [line 696]
string merge(
string
$graphXml1, string
$graphXml2)
|
|
Merge two GRDDL results into one. If F and G are GRDDL results of IR, then the merge [RDF-MT] of F and G is also a GRDDL result of IR. ?IR grddl:result ?F, ?G. (?F ?G) log:conjunction ?H. ?IR grddl:result ?H.
Parameters:
prettify [line 629]
string prettify(
string
$xml, [string
$originalUrl = null])
|
|
Prettify XML. Obeys options for preserveWhiteSpace & formatOutput, and removes redundant namespaces
Parameters:
transform [line 516]
string transform(
string
$stylesheet, string
$xml)
|
|
Transform the given XML with the provided XSLT. Driver implementations should override this method.
Overridden in child classes as:
- XML_GRDDL_Driver_Xsl::transform()
- Transform the given XML with the provided XSLT.
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:43:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|