ffdev-info / wikidp-issues

An issues repository for resolving issues in Wikidata around the records relating to Digital Preservation
GNU General Public License v3.0
1 stars 0 forks source link

Q26543628 and other examples returning "Unknown Value" for magic number offsets (Blank Node) #11

Open ross-spencer opened 3 years ago

ross-spencer commented 3 years ago

Description of problem

A handful of records have blank nodes for offset quantifier values. In the user interface this shows up as Unknown value and in the SPARQL result we receive a fairly anonymous string e.g. t1829220576.

# Details speciffically about https://www.wikidata.org/wiki/Q26543628
select distinct ?puid ?extension ?mimetype ?encodingLabel ?relativityLabel ?offset ?sig
where
{
  wd:Q26543628 wdt:P31/wdt:P279* wd:Q235557.          # Return records of type File Format.
  optional { wd:Q26543628 wdt:P2748 ?puid.   }     # PUID is used to map to PRONOM signatures proper.
  optional { wd:Q26543628 wdt:P1195 ?extension  }
  optional { wd:Q26543628 wdt:P1163 ?mimetype   }
  wd:Q26543628 p:P4152 ?object.                       # Format identification pattern statement.
  optional { ?object pq:P3294 ?encoding.   }     # We don't always have an encoding.
  optional { ?object ps:P4152 ?sig.        }     # We always have a signature.
  optional { ?object pq:P2210 ?relativity. }     # Relativity to beginning or end of file.
  optional { ?object pq:P4153 ?offset.    }     # Offset relatve to the relativity.

  # Wikidata's mechanism to return labels from SPARQL parameters.
  service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE], en". }
}

Example in the user interface:

image

image

Example in JSON:

      },
      "offset" : {
        "type" : "bnode",
        "value" : "t1829220576"
      }

Permalink

Another example: