Module: RdfaParser
- Defined in:
- lib/rdfa_parser/rdfa_parser.rb,
lib/rdfa_parser.rb,
lib/rdfa_parser/bnode.rb,
lib/rdfa_parser/graph.rb,
lib/rdfa_parser/triple.rb,
lib/rdfa_parser/uriref.rb,
lib/rdfa_parser/literal.rb,
lib/rdfa_parser/namespace.rb,
lib/rdfa_parser/exceptions.rb
Overview
An RDFa parser in Ruby
Based on processing rules described here: www.w3.org/TR/rdfa-syntax/#s_model
Ben Adida 2008-05-07 Gregg Kellogg 2009-08-04
Defined Under Namespace
Classes: AboutEachException, BNode, Graph, GraphException, InvalidObject, InvalidPredicate, InvalidSubject, Literal, Namespace, ParserException, RdfException, RdfaParser, Triple, TypeError, URIRef, UriRelativeException
Constant Summary collapse
- VERSION =
Version in parent directory
File.read(File.join(File.dirname(__FILE__), "..", "VERSION")).chop
- LINK_TYPES =
%w( alternate appendix bookmark cite chapter contents copyright first glossary help icon index last license meta next p3pv1 prev role section stylesheet subsection start top up )
- RDF_TYPE =
URIRef.new("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
- XML_LITERAL =
Literal::Encoding.xmlliteral
- RDF_NS =
Namespace.new("http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdf")
- RDFS_NS =
Namespace.new("http://www.w3.org/2000/01/rdf-schema#", "rdfs")
- XHV_NS =
Namespace.new("http://www.w3.org/1999/xhtml/vocab#", "xhv")
- XML_NS =
Namespace.new("http://www.w3.org/XML/1998/namespace", "xml")
- XH_MAPPING =
{"" => Namespace.new("http://www.w3.org/1999/xhtml/vocab\#", nil)}