Skip to content

Work aspect list of publication does not show publication if ordinal number for author is not set #2724

@fnielsen

Description

@fnielsen

Describe the bug
Work aspect list of publication does not show publication if ordinal number for author is not set

To Reproduce
Steps to reproduce the behavior:

  1. Go tohttps://scholia.toolforge.org/author/Q50390494#list-of-publications
  2. No publications are shown in the table

Expected behavior
Three publications should be shown.

Screenshots

Image

Additional context

Make ordinal optional:

  # By standard GROUP_CONCAT does not sort, but BlazeGraph seems to sort.
  SELECT
    ?work ?author ?author_label
  WHERE {
    ?work wdt:P50 target: .
    ?work p:P50 ?work_statement .
    ?work_statement ps:P50 ?author .
    OPTIONAL {
      ?work_statement pq:P1545 ?order  .
      BIND(xsd:integer(?order) AS ?n)
    }
    OPTIONAL {
      ?author rdfs:label ?author_label_ . FILTER (LANG(?author_label_) = 'en')
    }
    BIND(COALESCE(?author_label_, SUBSTR(STR(?author), 32)) AS ?author_label)
  }
  ORDER BY ?n

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething wrong on our end

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions