|
| __construct ( $role=parent::DOCUMENT_ROLE, BNodeLabeler $labeler=null, N3Quoter $quoter=null) |
|
| __construct ( $role, BNodeLabeler $labeler=null) |
|
| prefix ( $prefix, $iri) |
| Registers a prefix.
|
|
| getPrefixes () |
| Returns the prefix map.
|
|
| sub () |
|
| getRole () |
|
| blank ( $label=null) |
|
| start () |
|
| finish () |
|
| drain () |
|
| about ( $base, $local=null) |
|
| a ( $typeBase, $typeLocal=null) |
|
| say ( $base, $local=null) |
|
| is ( $base, $local=null) |
|
| text ( $text, $language=null) |
|
| value ( $value, $typeBase=null, $typeLocal=null) |
|
| getMimeType () |
| Returns the MIME type of the RDF serialization the writer produces.
|
|
|
| writeRef ( $base, $local=null) |
|
| writeIRI ( $iri, $trustIRI=false) |
|
| writeText ( $text, $language=null) |
| @inheritDoc
|
|
| writeValue ( $value, $typeBase, $typeLocal=null) |
|
| newSubWriter ( $role, BNodeLabeler $labeler) |
|
| registerShorthand ( $shorthand, $prefix, $local) |
| Registers a shorthand that can be used instead of a qname, like 'a' can be used instead of 'rdf:type'.
|
|
| isShorthand ( $shorthand) |
| Determines whether $shorthand can be used as a shorthand.
|
|
| isPrefix ( $prefix) |
| Determines whether $shorthand can legally be used as a prefix.
|
|
| isValidLanguageCode ( $languageCode) |
|
| write ( $w) |
| Appends string to the output buffer.
|
|
| expandShorthand (&$base, &$local) |
| If $base is a shorthand, $base and $local are updated to hold whatever qname the shorthand was associated with.
|
|
| expandQName (&$base, &$local) |
| If $base is a registered prefix, $base will be replaced by the base IRI associated with that prefix, with $local appended.
|
|
| state ( $newState) |
| Perform a state transition.
|
|
| writeSubject ( $base, $local=null) |
| Must be implemented to generate output that starts a statement (or set of statements) about a subject.
|
|
| writePredicate ( $base, $local=null) |
| Must be implemented to generate output that represents the association of a predicate with a subject that was previously defined by a call to writeSubject().
|
|
| writeResource ( $base, $local=null) |
| Must be implemented to generate output that represents a resource used as the object of a statement.
|
|
| expandSubject (&$base, &$local) |
| Perform any expansion (shorthand to qname, qname to IRI) desired for subject identifiers.
|
|
| expandPredicate (&$base, &$local) |
| Perform any expansion (shorthand to qname, qname to IRI) desired for predicate identifiers.
|
|
| expandResource (&$base, &$local) |
| Perform any expansion (shorthand to qname, qname to IRI) desired for resource identifiers.
|
|
| expandType (&$base, &$local) |
| Perform any expansion (shorthand to qname, qname to IRI) desired for type identifiers.
|
|
Base class for RdfWriter implementations that output an N3 dialect.
@license GPL-2.0-or-later
- Author
- Daniel Kinzler