semantically-taggable 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ module SemanticallyTaggable
57
57
  end
58
58
 
59
59
  def lookup_tag(pointer_node)
60
- url_xpath = "//skos:Concept[@rdf:resource='#{pointer_node['resource']}']"
60
+ url_xpath = "//skos:Concept[@rdf:about='#{pointer_node['resource']}']"
61
61
  concept_node = pointer_node.at_xpath(url_xpath) || (raise RuntimeError, "Concept at #{url_xpath} not found")
62
62
  pref_label = concept_node.at_xpath('skos:prefLabel').content
63
63
  @scheme.tags.find_by_name pref_label
@@ -4,7 +4,7 @@ namespace :import do
4
4
  scheme = SemanticallyTaggable::Scheme.by_name args.scheme_name
5
5
  scheme.import_skos(args.skos_filename) do |tag, node|
6
6
  # Extract original_id from the rdf:resource URI
7
- tag.original_id = node['resource'].match(%r{.*/([0-9]*)$})[1]
7
+ tag.original_id = node['about'].match(%r{.*/([0-9]*)$})[1]
8
8
  end
9
9
  end
10
10