lib/rdf/json/reader.rb
##
# Parses an RDF/JSON subject string into a URI reference or blank node.
#
# @param  [String] subject
# @return [RDF::Resource]
Parses an RDF/JSON subject string into a URI reference or blank node.
Parses an RDF / JSON subject string into a URI reference or blank node .
def parse_subject(subject)
      case subject
        when /^_:/ then parse_node(subject)
        else parse_uri(subject)
      end
    end
def parse_subject ( subject ) case subject when / ^_: / then parse_node ( subject ) else parse_uri ( subject ) end end
Parses an RDF/JSON subject string into a URI reference or blank node.
Parses an RDF / JSON subject string into a URI reference or blank node .
None
RDF::Resource
subject
None