Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Yardoc updates.

  • Loading branch information...
commit 49a7e6725c4ab1a47d80f4d19ae3f38ab918f04b 1 parent 3672718
@gkellogg gkellogg authored
View
4 History.md
@@ -40,8 +40,8 @@
### 0.2.0
* There is no longer any official way to generate RDF and use gem as an experimentation platform.
* Use rdf_term-type property generation and remove option to set it.
-* Don't generate triple for html>head>title
-* @datetime values are scanned lexically to find appropriate datatype
+* Don't generate triple for html\>head\>title
+* \@datetime values are scanned lexically to find appropriate datatype
### 0.1.3
* Fixed ruby 1.8 regular expression bug.
View
4 lib/rdf/microdata/expansion.rb
@@ -6,7 +6,7 @@ module Expansion
##
# Perform vocabulary expansion on the resulting default graph.
#
- # Vocabulary expansion relies on a sub-set of OWL [OWL2-PROFILES] entailment to add triples to the default graph based on rules and property/class relationships described in referenced vocabularies.
+ # Vocabulary expansion relies on a sub-set of OWL [OWL2-PROFILES](http://www.w3.org/TR/2009/REC-owl2-profiles-20091027/#Reasoning_in_OWL_2_RL_and_RDF_Graphs_using_Rules) entailment to add triples to the default graph based on rules and property/class relationships described in referenced vocabularies.
#
# For all objects that are the target of an rdfa:usesVocabulary property, load the IRI into a repository.
#
@@ -21,7 +21,7 @@ module Expansion
# {p1 rdfs:subPropertyOf p2 . x p1 y} => {x p2 y}
#
# @return [RDF::Graph]
- # @see [OWL2 PROFILES](http://www.w3.org/TR/2009/REC-owl2-profiles-20091027/#Reasoning_in_OWL_2_RL_and_RDF_Graphs_using_Rules)
+ # @see [OWL2 PROFILES][]
def expand
repo = RDF::Repository.new
repo << self # Add default graph
View
10 lib/rdf/microdata/reader.rb
@@ -20,9 +20,9 @@ class Reader < RDF::Reader
include Expansion
URL_PROPERTY_ELEMENTS = %w(a area audio embed iframe img link object source track video)
DEFAULT_REGISTRY = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "etc", "registry.json"))
-
- class CrawlFailure < StandardError #:nodoc:
- end
+
+ # @private
+ class CrawlFailure < StandardError; end
# Returns the HTML implementation module for this reader instance.
#
@@ -167,7 +167,7 @@ def as_list(predicateURI)
##
# Yield a equivalentProperty or subPropertyOf if appropriate
# @param [RDF::URI] predicateURI
- # @yield :statement
+ # @yield statement
# @yieldparam [RDF::Statement] statement
# @return [Boolean]
def expand(predicateURI)
@@ -225,7 +225,7 @@ def frag_escape(name)
# @yield [reader] `self`
# @yieldparam [RDF::Reader] reader
# @yieldreturn [void] ignored
- # @raise [Error]:: Raises RDF::ReaderError if _validate_
+ # @raise [Error] Raises `RDF::ReaderError` when validating
def initialize(input = $stdin, options = {}, &block)
super do
@debug = options[:debug]
View
6 lib/rdf/microdata/reader/nokogiri.rb
@@ -26,7 +26,7 @@ def initialize(node, parent = nil)
##
# Element language
#
- # From HTML5 [3.2.3.3]
+ # From HTML5 3.2.3.3
# If both the lang attribute in no namespace and the lang attribute in the XML namespace are set
# on an element, user agents must use the lang attribute in the XML namespace, and the lang
# attribute in no namespace must be ignored for the purposes of determining the element's
@@ -124,8 +124,8 @@ def initialize(node_set, parent)
##
# Return a proxy for each child
#
- # @yield(child)
- # @yieldparam(NodeProxy)
+ # @yield child
+ # @yieldparam [NodeProxy] child
def each
@node_set.each do |c|
yield NodeProxy.new(c, parent)
View
6 lib/rdf/microdata/reader/rexml.rb
@@ -28,7 +28,7 @@ def initialize(node, parent = nil)
##
# Element language
#
- # From HTML5 [3.2.3.3]
+ # From HTML5 3.2.3.3
# If both the lang attribute in no namespace and the lang attribute in the XML namespace are set
# on an element, user agents must use the lang attribute in the XML namespace, and the lang
# attribute in no namespace must be ignored for the purposes of determining the element's
@@ -162,8 +162,8 @@ def initialize(node_set, parent)
##
# Return a proxy for each child
#
- # @yield(child)
- # @yieldparam(NodeProxy)
+ # @yield child
+ # @yieldparam [NodeProxy] child
def each
@node_set.each do |c|
yield NodeProxy.new(c, parent)
Please sign in to comment.
Something went wrong with that request. Please try again.