Skip to content

id in GraphQl query bug for text/turtle request #95

@renevds

Description

@renevds

When requesting text/turtle for a set of queries that has id, all queries must have id in their query.

Minimal failing config:

openapi: 3.0.2
info:
  title: Test site
  version: 0.1.0
paths:
  /example:
    get:
      summary: A simple path
      responses:
        '200':
          description: A simple response
          x-walder-input-text/html: template.pug
      x-walder-query:
        graphql-query:
          first: |
            {
              id @single
              comment @single @optional
            } 
#adding id @single to this query makes it work correctly
          second: |
            {
              comment @single @optional
            }
        json-ld-context: |
          {
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "comment": "rdfs:comment"
          }
        datasources:
          sources:
            - http://localhost:8080/example.ttl
RDF source for reference:
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix odapps: <http://apps4eu.eu/vocab/odapps#>.
@prefix apps4X: <http://semweb.mmlab.be/ns/apps4X#>.
@prefix schema: <http://schema.org/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix lode: <http://linkedevents.org/ontology/> .
@prefix dul: <http://www.loa-cnr.it/ontologies/DUL.owl#> .
@prefix rev: <http://purl.org/stuff/rev#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.


# ---------------------------------------- Metadata----------------------------------------------

<http://semweb.mmlab.be/ns/apps4X#>
	a owl:Ontology;
	rdfs:comment "odapps is an RDF vocabulary defined to facilitate the description of Open-Data-based ideas and applications published on the Web.";
	dct:title "The vocabulary for (L)OD ideas and applications"@en;
	dct:issued "2013-05-10"^^xsd:date;
        dct:modified "2013-07-24"^^xsd:date;
	dct:creator [foaf:mbox "[email protected]"; foaf:name "Anastasia Dimou"];
	dct:creator [foaf:mbox "[email protected]"; foaf:name "Pieter Colpaert"].


# ------------------------------------------ Classes --------------------------------------------

# Co-creation Event

# need to decide on the proper word to call it, is co-creation event? is it co-creation competition? is it competition? is it contest? 
# or use alternative labels.
# A cocreation event may be an event on its own or it could be a competition in the frame of a broader event
apps4X:CocreationEvent a rdfs:Class ;
	rdfs:subClassOf lode:Event, schema:Event ; 
	rdfs:label "Co-creation event" ;
	rdfs:comment "A co-creation event is a competition, a contest, a challenge etc. It's a subproperty as it is an event but with a certain scope" ;
	rdfs:isDefinedBy <http://apps4europe.eu/vocab/apps4X#>  .

# ---------------------------------------- Properties --------------------------------------------


#apps4X:award

#it could be more than one awards offered
apps4X:award a rdf:Property ;
	rdfs:label "award offered" ;
	rdfs:comment "one or more awards offered at this co-creation event" ;
	rdfs:isDefinedBy <http://apps4europe.eu/vocab/apps4X#> ;
	rdfs:domain apps4X:CocreationEvent , apps4X:Jury ;
	rdfs:range apps4X:Award .

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