Skip to content

Search for ?media=image can return resources with no images #1

@townxelliot

Description

@townxelliot

(Opening against Acropolis as I'm not 100% sure where in the stack the issue is, or even if it's an issue.)

Searching for keywords with media=image set can sometimes return resources which don't have any images associated with them through mrss:player, mrss:content or similar.

To reproduce:

  1. Search Acropolis:
    http://acropolis.org.uk/?offset=0&limit=25&q=judi+dench&media=image

  2. Fetch one of the resources returned by the search as Turtle:
    http://acropolis.org.uk/a75e5495087d4db89eccc6a52cc0e3a4.ttl#id

  3. Check the RDF for mrss:content or mrss:player URIs. There aren't any.

  4. Search the whole text of the RDF for '.jpg', '.gif', '.png', '/player'. None are present.

There is the statement

<http://shakespeare.acropolis.org.uk/images/4040698#id> foaf:depicts <http://dbpedia.org/resource/Judi_Dench>

in the RDF, and

<http://dbpedia.org/resource/Judi_Dench> owl:sameAs <http://acropolis.org.uk/a75e5495087d4db89eccc6a52cc0e3a4.ttl#id>

Is this what's causing the resource to be included in the search results?

Would it be worth modifying the response to only include resources with mrss:player or mrss:content statements on them?

If not, could you please explain the algorithm used for choosing which results are returned for media queries?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions