Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rdf::trine::parser::owlfn::grammar(3pm) [debian man page]

RDF::Trine::Parser::OwlFn::Grammar(3pm) 		User Contributed Perl Documentation		   RDF::Trine::Parser::OwlFn::Grammar(3pm)

NAME
RDF::Trine::Parser::OwlFn::Grammar - provides a Parse::RecDescent grammar for OWL 2.0 Functional Syntax DESCRIPTION
This package provides two methods: o "grammar" Returns the grammar as a string. o "new" Returns a Parse::RecDescent parser object using the grammar Additionally, if you run this "Grammar.pm" module directly at the command line: perl -w Grammar.pm It will generate a file called "Compiled.pm" containing a pre-compiled Parse::RecDescent parser. CONFORMANCE
This grammar deviates from the official one in a few places: o QName (a.k.a. CURIE) syntax is slightly broken - in most cases you won't notice it. o CSS-style comments (/* ... */) are allowed. o Unquoted xsd:nonNegativeInteger tokens can be used as literals. o The unquoted tokens 'true' and 'false' can be used as literals. o Multiple "Ontology(...)" instances are allowed in a single file. SEE ALSO
http://www.w3.org/TR/2009/REC-owl2-syntax-20091027/#Appendix:_Complete_Grammar_.28Normative.29 <http://www.w3.org/TR/2009/REC- owl2-syntax-20091027/#Appendix:_Complete_Grammar_.28Normative.29>, http://www.w3.org/TR/2009/REC-owl2-mapping-to-rdf-20091027/#Mapping_from_the_Structural_Specification_to_RDF_Graphs <http://www.w3.org/TR/2009/REC-owl2-mapping-to-rdf-20091027/#Mapping_from_the_Structural_Specification_to_RDF_Graphs>. RDF::Trine::Parser::OwlFn. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2011-2012 Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-06-28 RDF::Trine::Parser::OwlFn::Grammar(3pm)

Check Out this Related Man Page

RDF::Trine::Node::Formula(3pm)				User Contributed Perl Documentation			    RDF::Trine::Node::Formula(3pm)

NAME
RDF::Trine::Node::Formula - RDF Node class for formulae / graph literals DESCRIPTION
Formulae are implemented as a subclass of literals. Parts of Trine that have no special knowledge about formulae (e.g. the Turtle serialiser) will just see them as literals with a particular datatype URI (http://open.vocab.org/terms/Formula). If your code needs to detect formulae nodes, try: use Scalar::Util qw[blessed]; if (blessed($node) && $node->isa('RDF::Trine::Node::Formula')) { ... do stuff to formulae ... } or perhaps use Scalar::Util qw[blessed]; if (blessed($node) && $node->can('pattern')) { ... do stuff to formulae ... } METHODS
"new ( $pattern )" Returns a new Formula structure. This is a subclass of RDF::Trine::Node::Literal. $pattern is an RDF::Trine::Pattern or a string capable of being parsed with RDF::Trine::Parser::Notation3->parse_formula. "pattern ( $node )" Returns the formula as an RDF::Trine::Pattern. "forAll" Returns the a list of nodes with the @forAll quantifier. This is a fairly obscure bit of N3 semantics. "forSome" Returns the a list of nodes with the @forSome quantifier. This is a fairly obscure bit of N3 semantics. "as_literal_notation" Returns the formula in Notation-3-like syntax, excluding the wrapping "{"..."}". Uses absolute URIs whenever possible, avoiding relative URI references, QNames and keywords. "from_literal_notation ( $string, $base )" Modifies the formula's value using Notation 3 syntax, excluding the wrapping "{"..."}". "equal ( $node )" Returns true if the two nodes are equal, false otherwise. TODO - really need a "not equal, but equivalent" method. AUTHOR
Toby Inkster "<tobyink@cpan.org>" Based on RDF::Trine::Node::Literal by Gregory Todd Williams. COPYRIGHT AND LICENCE
Copyright (c) 2006-2010 Gregory Todd Williams. Copyright (c) 2010-2011 Toby Inkster. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2011-10-22 RDF::Trine::Node::Formula(3pm)
Man Page