linkedtv / editortool

all issues concerning the LinkedTV EditorTool
2 stars 1 forks source link

Don't generate new UUIDs when not necessary #35

Closed rtroncy closed 9 years ago

rtroncy commented 10 years ago

The query below displays all chapters, with their titles and who has generated this chapter for the _Tussen Kunst - 200 program_ (Gold Watch by Breguet, Graphic Design Museum episode).

SELECT ?mediaFragment ?chapter ?label ?prov
WHERE {
  ?mediaFragment ma:isFragmentOf <http://data.linkedtv.eu/media/8a8187f2-3fc8-cb54-0140-7dd099380002> . 
  ?mediaFragment a ma:MediaFragment .
  ?annotation a oa:Annotation . 
  ?annotation oa:hasTarget ?mediaFragment .
  ?annotation oa:hasBody ?chapter .
  ?annotation prov:wasAttributedTo ?prov .
  ?chapter a linkedtv:Chapter .
  ?chapter rdfs:label ?label .
}

The results are here

@jblom You see the problem? You SHOULD NOT generate a new UUID for each media fragment corresponding to a chapter. The idea is that those identifiers are the UUID of the media resource + '#' + temporal start + ',' + temporal end

jblom commented 10 years ago

Hi Raphael,

thanks for pointing this out! I have updated my current code.