<commit_before>module RdfPrefixes
  extend self

  PREFIX_DEFN = {
    "rdf"     => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "rdfs"    => "http://www.w3.org/2000/01/rdf-schema#",
    "xsd"     => "http://www.w3.org/2001/XMLSchema#",
    "owl"     => "http://www.w3.org/2002/07/owl#",
    "swrl"    => "http://www.w3.org/2003/11/swrl#",
    "swrlb"   => "http://www.w3.org/2003/11/swrlb#",
    "vitro"   => "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#",
    "auth"    => "http://vitro.mannlib.cornell.edu/ns/vitro/authorization#",
    "bibo"    => "http://purl.org/ontology/bibo/",
    "dcelem"  => "http://purl.org/dc/elements/1.1/",
    "dcterms" => "http://purl.org/dc/terms/",
    "duke"    => "http://vivo.duke.edu/vivo/ontology/duke-extension#",
    "dukeact" => "http://vivo.duke.edu/vivo/ontology/duke-activity-extension#",
    "dukeart" => "http://vivo.duke.edu/vivo/ontology/duke-art-extension#",
    "duke_geo" => "http://vivo.duke.edu/vivo/ontology/duke-geo-extension#",
    "event"   => "http://purl.org/NET/c4dm/event.owl#",
    "foaf"    => "http://xmlns.com/foaf/0.1/",
    "geo"     => "http://aims.fao.org/aos/geopolitical.owl#",
    "pvs"     => "http://vivoweb.org/ontology/provenance-support#",
    "obo"     => "http://purl.obolibrary.org/obo/",
    "vcard"   => "http://www.w3.org/2006/vcard/ns#",
    "scires"  => "http://vivoweb.org/ontology/scientific-research#",
    "skos"    => "http://www.w3.org/2004/02/skos/core#",
    "vpublic" => "http://vitro.mannlib.cornell.edu/ns/vitro/public#",
    "core"    => "http://vivoweb.org/ontology/core#"
  }


  def method_missing(method_sym,*args, &block)
    if prefix = PREFIX_DEFN[method_sym.to_s]
      "#{prefix}#{args.first}"
    else
      super
    end
  end<commit_msg>1.7: Add human-readable translation of obo predicates<commit_after>module RdfPrefixes
  extend self

  PREFIX_DEFN = {
    "rdf"     => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "rdfs"    => "http://www.w3.org/2000/01/rdf-schema#",
    "xsd"     => "http://www.w3.org/2001/XMLSchema#",
    "owl"     => "http://www.w3.org/2002/07/owl#",
    "swrl"    => "http://www.w3.org/2003/11/swrl#",
    "swrlb"   => "http://www.w3.org/2003/11/swrlb#",
    "vitro"   => "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#",
    "auth"    => "http://vitro.mannlib.cornell.edu/ns/vitro/authorization#",
    "bibo"    => "http://purl.org/ontology/bibo/",
    "dcelem"  => "http://purl.org/dc/elements/1.1/",
    "dcterms" => "http://purl.org/dc/terms/",
    "duke"    => "http://vivo.duke.edu/vivo/ontology/duke-extension#",
    "dukeact" => "http://vivo.duke.edu/vivo/ontology/duke-activity-extension#",
    "dukeart" => "http://vivo.duke.edu/vivo/ontology/duke-art-extension#",
    "duke_geo" => "http://vivo.duke.edu/vivo/ontology/duke-geo-extension#",
    "event"   => "http://purl.org/NET/c4dm/event.owl#",
    "foaf"    => "http://xmlns.com/foaf/0.1/",
    "geo"     => "http://aims.fao.org/aos/geopolitical.owl#",
    "pvs"     => "http://vivoweb.org/ontology/provenance-support#",
    "obo"     => "http://purl.obolibrary.org/obo/",
    "vcard"   => "http://www.w3.org/2006/vcard/ns#",
    "scires"  => "http://vivoweb.org/ontology/scientific-research#",
    "skos"    => "http://www.w3.org/2004/02/skos/core#",
    "vpublic" => "http://vitro.mannlib.cornell.edu/ns/vitro/public#",
    "core"    => "http://vivoweb.org/ontology/core#",
    "vivo"    => "http://vivoweb.org/ontology/core#"
  }

  def obo_has_contact_info
    "ARG_2000028"
  end

  def obo_contact_info_of
    "ARG_2000029"
  end

  def method_missing(method_sym,*args, &block)
    if prefix = PREFIX_DEFN[method_sym.to_s]
      "#{prefix}#{args.first}"
    else
      super
    end
  end
{'fraction_non_alphanumeric': 0.23638814016172507, 'fraction_numerical': 0.03719676549865229, 'mean_word_length': 2.714714714714715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207251', 'n_tokens_mistral': 1753, 'n_tokens_neox': 1622, 'n_words': 147}