diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/model/APIRawValidations.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/model/APIRawValidations.scala index 7bdd9c7810..0561e3335d 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/model/APIRawValidations.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/model/APIRawValidations.scala @@ -1285,8 +1285,8 @@ object APIRawValidations extends CommonValidationDefinitions { ), AMFValidation( uri = amfParser("reserved-endpoints"), - owlClass = apiContract("EndPoint"), - owlProperty = apiContract("path"), + owlClass = apiContract("WebAPI"), + owlProperty = apiContract("EndPoints"), constraint = shape("reservedEndpoints"), message = "Endpoint is reserved by Federation" ) diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/APICustomShaclFunctions.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/APICustomShaclFunctions.scala index bc231b75a9..11821bfc76 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/APICustomShaclFunctions.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/APICustomShaclFunctions.scala @@ -1,7 +1,7 @@ package amf.apicontract.internal.validation.shacl import amf.apicontract.client.scala.model.domain.{EndPoint, Request} -import amf.apicontract.client.scala.model.domain.api.Api +import amf.apicontract.client.scala.model.domain.api.{Api, WebApi} import amf.apicontract.client.scala.model.domain.security.{OAuth2Settings, OpenIdConnectSettings, SecurityScheme} import amf.apicontract.internal.metamodel.domain._ import amf.apicontract.internal.metamodel.domain.api.BaseApiModel @@ -88,28 +88,31 @@ object APICustomShaclFunctions extends BaseCustomShaclFunctions { new CustomShaclFunction { override val name: String = "reservedEndpoints" override def run(element: AmfObject, validate: Option[ValidationInfo] => Unit): Unit = { - val reserved = Set("_service", "_entities") - val endpoint = element.asInstanceOf[EndPoint] - endpoint.path - .option() - .map(_.stripPrefix("/query/").stripPrefix("/mutation/").stripPrefix("/subscription/")) - .flatMap { - case path if reserved.contains(path) => - val rootKind = { - val name = endpoint.name.value() - val end = name.indexOf(".") - name.substring(0, end) - } - Some( - ValidationInfo( - EndPointModel.Path, - Some(s"Cannot declare field '$path' in type $rootKind since it is reserved by Federation"), - Some(element.annotations) + val reserved = Set("_service", "_entities") + val api = element.asInstanceOf[WebApi] + val endpoints = api.endPoints + endpoints.foreach { endpoint => + endpoint.path + .option() + .map(_.stripPrefix("/query/").stripPrefix("/mutation/").stripPrefix("/subscription/")) + .flatMap { + case path if reserved.contains(path) => + val rootKind = { + val name = endpoint.name.value() + val end = name.indexOf(".") + name.substring(0, end) + } + Some( + ValidationInfo( + EndPointModel.Path, + Some(s"Cannot declare field '$path' in type $rootKind since it is reserved by Federation"), + Some(element.annotations) + ) ) - ) - case _ => None - } - .foreach(res => validate(Some(res))) + case _ => None + } + .foreach(res => validate(Some(res))) + } } }, new CustomShaclFunction { @@ -468,9 +471,12 @@ object APICustomShaclFunctions extends BaseCustomShaclFunctions { element match { case d: CustomDomainProperty => if (hasIntrospectionName(d)) validate(Some(ValidationInfo(CustomDomainPropertyModel.Name))) - case t: Shape => if (hasIntrospectionName(t)) validate(Some(ValidationInfo(AnyShapeModel.Name))) + case t: Shape => + if (hasIntrospectionName(t)) validate(Some(ValidationInfo(AnyShapeModel.Name))) case n: NamedDomainElement => - if (hasIntrospectionName(n)) validate(Some(ValidationInfo(NameFieldSchema.Name))) + if (hasIntrospectionName(n)) { + validate(Some(ValidationInfo(NameFieldSchema.Name))) + } case _ => // ignore } } @@ -764,7 +770,7 @@ object APICustomShaclFunctions extends BaseCustomShaclFunctions { // Obtained from the BNF in: https://tools.ietf.org/html/rfc7230#section-3.2 private def isInvalidHttpHeaderName(name: String): Boolean = - !name.matches("^[!#$%&'*\\+\\-\\.^\\_\\`\\|\\~0-9a-zA-Z]+$") + !name.matches("^[!#$%&'*+\\-.^_`|~0-9a-zA-Z]+$") private def hasIntrospectionName(element: NamedDomainElement): Boolean = element.name.nonNull && element.name.value().startsWith("__") diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLDirectiveLocationValidator.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLDirectiveLocationValidator.scala index d3ddb097e3..5702fbec40 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLDirectiveLocationValidator.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLDirectiveLocationValidator.scala @@ -36,7 +36,13 @@ object GraphQLDirectiveLocationValidator { result match { case Some((actual, false)) => val message = buildErrorMessage(directiveApplication, element, actual.name) - Some(ValidationInfo(DomainElementModel.CustomDomainProperties, Some(message), Some(directiveApplication.annotations))) + Some( + ValidationInfo( + DomainElementModel.CustomDomainProperties, + Some(message), + Some(directiveApplication.annotations) + ) + ) case _ => None } } diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLFieldsFilter.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLFieldsFilter.scala new file mode 100644 index 0000000000..4e76a5f8a4 --- /dev/null +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLFieldsFilter.scala @@ -0,0 +1,22 @@ +package amf.apicontract.internal.validation.shacl.graphql + +import amf.apicontract.internal.metamodel.domain.EndPointModel +import amf.apicontract.internal.metamodel.domain.api.WebApiModel +import amf.core.client.scala.model.document.FieldsFilter +import amf.core.client.scala.model.domain.AmfElement +import amf.core.internal.metamodel.document.DocumentModel +import amf.core.internal.parser.domain.{FieldEntry, Fields} + +/** Scope does not include external references (like FieldsFilter.Local) and also removes endpoints to avoid validating + * them twice in graphql (because they are also parsed as types) + */ +object GraphQLFieldsFilter extends FieldsFilter { + + override def filter(fields: Fields): List[AmfElement] = + fields + .fields() + .filter(_.field != DocumentModel.References) // remove external refs + .filter(_.field != WebApiModel.EndPoints) // remove endpoints + .map(_.element) + .toList +} diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLIteratorStrategy.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLIteratorStrategy.scala new file mode 100644 index 0000000000..527736cd8b --- /dev/null +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLIteratorStrategy.scala @@ -0,0 +1,15 @@ +package amf.apicontract.internal.validation.shacl.graphql + +import amf.core.client.scala.model.domain.AmfElement +import amf.core.client.scala.traversal.iterator.{ + AmfIterator, + DomainElementIterator, + IdCollector, + IteratorStrategy, + VisitedCollector +} + +object GraphQLIteratorStrategy extends IteratorStrategy { + override def iterator(elements: List[AmfElement], visited: VisitedCollector = IdCollector()): AmfIterator = + DomainElementIterator.withFilter(elements, visited, GraphQLFieldsFilter) +} diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLShaclModelValidationPlugin.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLShaclModelValidationPlugin.scala new file mode 100644 index 0000000000..a125589b1f --- /dev/null +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLShaclModelValidationPlugin.scala @@ -0,0 +1,37 @@ +package amf.apicontract.internal.validation.shacl.graphql + +import amf.apicontract.internal.validation.plugin.BaseApiValidationPlugin +import amf.apicontract.internal.validation.shacl.APICustomShaclFunctions +import amf.core.client.common.validation.{ProfileName, ProfileNames} +import amf.core.client.common.{HighPriority, PluginPriority} +import amf.core.client.scala.model.document.BaseUnit +import amf.core.client.scala.validation.AMFValidationReport +import amf.core.internal.plugins.validation.ValidationOptions +import amf.shapes.internal.validation.shacl.BaseShaclModelValidationPlugin +import amf.validation.internal.shacl.custom.CustomShaclValidator +import amf.validation.internal.shacl.custom.CustomShaclValidator.CustomShaclFunctions + +import scala.concurrent.{ExecutionContext, Future} + +case class GraphQLShaclModelValidationPlugin(override val profile: ProfileName = ProfileNames.GRAPHQL) + extends BaseShaclModelValidationPlugin + with BaseApiValidationPlugin { + + override val id: String = this.getClass.getSimpleName + + override def priority: PluginPriority = HighPriority + + override protected def getValidator: CustomShaclValidator = { + new CustomShaclValidator( + functions, + profile.messageStyle, + strategy = GraphQLIteratorStrategy + ) + } + + override protected def specificValidate(unit: BaseUnit, options: ValidationOptions)(implicit + executionContext: ExecutionContext + ): Future[AMFValidationReport] = Future(validateWithShacl(unit, options: ValidationOptions)) + + override protected val functions: CustomShaclFunctions = APICustomShaclFunctions.functions +} diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLUtils.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLUtils.scala index b6166ae8b0..81fbe4954e 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLUtils.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLUtils.scala @@ -1,6 +1,6 @@ package amf.apicontract.internal.validation.shacl.graphql -import amf.core.client.scala.model.domain.Shape +import amf.core.client.scala.model.domain.{AmfObject, Shape} import amf.shapes.client.scala.model.domain._ import scala.annotation.tailrec @@ -16,6 +16,7 @@ object GraphQLUtils { } } + @tailrec def isValidInputType(schema: Shape): Boolean = { schema match { case a: ArrayShape => isValidInputType(a.items) diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLValidator.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLValidator.scala index 08e55bbcff..c25aa06952 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLValidator.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/GraphQLValidator.scala @@ -16,7 +16,7 @@ import scala.annotation.tailrec object GraphQLValidator { - def checkValidPath(path: Seq[PropertyShape], key: Key): Seq[ValidationInfo] = { + private def checkValidPath(path: Seq[PropertyShape], key: Key): Seq[ValidationInfo] = { path.flatMap { propertyShape => propertyShape.range match { case n: NodeShape => @@ -69,7 +69,7 @@ object GraphQLValidator { } } - case class RequiredField(interface: String, field: GraphQLField) + private case class RequiredField(interface: String, field: GraphQLField) def validateRequiredFields(obj: GraphQLObject): Seq[ValidationInfo] = { @@ -216,15 +216,8 @@ object GraphQLValidator { } else None } - val operationValidations = obj.operations.flatMap { op => - if (!op.isValidOutputType) { - validationInfo( - NodeShapeModel.Properties, - s"Type '${getShapeName(op.payload.get.schema)}' from field '${op.name}' must be an output type", - op.annotations - ) - } else None - } + val operations = obj.operations + val operationValidations = validateOperations(operations) operationValidations ++ propertiesValidations } else { @@ -234,7 +227,12 @@ object GraphQLValidator { } def validateOutputTypes(endpoint: GraphQLEndpoint): Seq[ValidationInfo] = { - endpoint.operations.flatMap { op => + val operations = endpoint.operations + validateOperations(operations) + } + + private def validateOperations(operations: Seq[GraphQLOperation]): Seq[ValidationInfo] = { + operations.flatMap { op => if (!op.isValidOutputType) { validationInfo( NodeShapeModel.Properties, @@ -247,20 +245,18 @@ object GraphQLValidator { def validateInputTypes(obj: GraphQLObject): Seq[ValidationInfo] = { // fields arguments cannot be output types - val operationValidations = obj.operations.flatMap { op => - op.parameters.flatMap { param => - if (!param.isValidInputType) { - validationInfo( - NodeShapeModel.Properties, - s"Type '${getShapeName(param.schema)}' from argument '${param.name}' must be an input type", - param.annotations - ) - } else None - } - } + val parameters: Seq[GraphQLParameter] = obj.operations.flatMap(_.parameters) + val operationValidations = validateParameters(parameters) // input type fields or directive arguments cannot be output types - val propertiesValidations = obj.properties.flatMap { prop => + val properties: Seq[GraphQLProperty] = obj.properties + val propertiesValidations = validateProperties(properties, obj) + + operationValidations ++ propertiesValidations + } + + private def validateProperties(properties: Seq[GraphQLProperty], obj: GraphQLObject): Seq[ValidationInfo] = { + properties.flatMap { prop => if (!prop.isValidInputType && obj.isInput) { val message = s"Type '${getShapeName(prop.range)}' from field '${prop.name}' must be an input type" validationInfo( @@ -270,12 +266,14 @@ object GraphQLValidator { ) } else None } - - operationValidations ++ propertiesValidations } def validateInputTypes(endpoint: GraphQLEndpoint): Seq[ValidationInfo] = { - endpoint.parameters.flatMap { param => + validateParameters(endpoint.parameters) + } + + private def validateParameters(parameters: Seq[GraphQLParameter]): Seq[ValidationInfo] = { + parameters.flatMap { param => if (!param.isValidInputType) { validationInfo( NodeShapeModel.Properties, diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/EnumValueValidator.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/EnumValueValidator.scala index e387f6a325..3228560820 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/EnumValueValidator.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/EnumValueValidator.scala @@ -16,6 +16,7 @@ object EnumValueValidator extends ValueValidator[ScalarShape] { case o: ObjectNode => Seq(typeError("scalar", "object", o.annotations)) } } + private def validateDataType(value: ScalarNode)(implicit targetField: Field): Seq[ValidationInfo] = { value.dataType.value() match { case DataTypes.Any => Nil // enum values are 'Any' explicitly @@ -23,7 +24,9 @@ object EnumValueValidator extends ValueValidator[ScalarShape] { } } - private def validateValueIsMember(shape: ScalarShape, value: ScalarNode)(implicit targetField: Field): Seq[ValidationInfo] = { + private def validateValueIsMember(shape: ScalarShape, value: ScalarNode)(implicit + targetField: Field + ): Seq[ValidationInfo] = { val acceptedValues = shape.values val actualValue = value.value.value() diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/NullableValueValidator.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/NullableValueValidator.scala index 35bcb821f0..3ce8f3a8ed 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/NullableValueValidator.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/NullableValueValidator.scala @@ -13,7 +13,9 @@ object NullableValueValidator extends ValueValidator[UnionShape] { } } - private def validateNonNullValue(shape: UnionShape, other: DataNode)(implicit targetField: Field): Seq[ValidationInfo] = { + private def validateNonNullValue(shape: UnionShape, other: DataNode)(implicit + targetField: Field + ): Seq[ValidationInfo] = { val concreteShape = shape.anyOf.filter(!_.isInstanceOf[NilShape]).head ValueValidator.validate(concreteShape, other) } diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ObjectValueValidator.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ObjectValueValidator.scala index e281fbb4d7..4eb41edc73 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ObjectValueValidator.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ObjectValueValidator.scala @@ -20,7 +20,9 @@ object ObjectValueValidator extends ValueValidator[NodeShape] { sealed case class ReportingInfo(shapeName: String, annotations: Annotations) - private def validateProperties(shape: NodeShape, value: ObjectNode)(implicit targetField: Field): Seq[ValidationInfo] = { + private def validateProperties(shape: NodeShape, value: ObjectNode)(implicit + targetField: Field + ): Seq[ValidationInfo] = { val actual: Map[String, DataNode] = value.allPropertiesWithName() val expected = shape.properties implicit val info: ReportingInfo = ReportingInfo(shape.name.value(), value.annotations) @@ -29,7 +31,8 @@ object ObjectValueValidator extends ValueValidator[NodeShape] { } private def validateExpectedProperties(expected: Seq[PropertyShape], actual: Map[String, DataNode])(implicit - info: ReportingInfo, targetField: Field + info: ReportingInfo, + targetField: Field ): Seq[ValidationInfo] = { expected.flatMap { expectedProperty => validateExpectedProperty(expectedProperty, actual) } } diff --git a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ScalarValueValidator.scala b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ScalarValueValidator.scala index cc4d3c1c85..325e27ec24 100644 --- a/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ScalarValueValidator.scala +++ b/amf-api-contract/shared/src/main/scala/amf/apicontract/internal/validation/shacl/graphql/values/ScalarValueValidator.scala @@ -16,7 +16,9 @@ object ScalarValueValidator extends ValueValidator[ScalarShape] { } } - private def validateDataType(shape: ScalarShape, value: ScalarNode)(implicit targetField: Field): Seq[ValidationInfo] = { + private def validateDataType(shape: ScalarShape, value: ScalarNode)(implicit + targetField: Field + ): Seq[ValidationInfo] = { val shapeDT = shape.dataType.value() val valueDT = value.dataType.value() shapeDT match { diff --git a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.report b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.report index d45ccee100..670427c5bf 100644 --- a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.report +++ b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.report @@ -5,6 +5,22 @@ Number of results: 9 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#reserved-endpoints + Message: Cannot declare field '_entities' in type Query since it is reserved by Federation + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.graphql#/web-api + Property: http://a.ml/vocabularies/apiContract#path + Range: + Location: + +- Constraint: http://a.ml/vocabularies/amf/parser#reserved-endpoints + Message: Cannot declare field '_service' in type Query since it is reserved by Federation + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.graphql#/web-api + Property: http://a.ml/vocabularies/apiContract#path + Range: + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#reserved-type-names Message: Cannot declare scalar with name '_Any' since it is reserved by Federation Severity: Violation @@ -60,19 +76,3 @@ Level: Violation Property: http://www.w3.org/ns/shacl#name Range: [(12,0)-(14,1)] Location: - -- Constraint: http://a.ml/vocabularies/amf/parser#reserved-endpoints - Message: Cannot declare field '_entities' in type Query since it is reserved by Federation - Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.graphql#/web-api/endpoint/%2Fquery%2F_entities - Property: http://a.ml/vocabularies/apiContract#path - Range: [(17,4)-(17,52)] - Location: - -- Constraint: http://a.ml/vocabularies/amf/parser#reserved-endpoints - Message: Cannot declare field '_service' in type Query since it is reserved by Federation - Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/invalid/federation-reserved.graphql#/web-api/endpoint/%2Fquery%2F_service - Property: http://a.ml/vocabularies/apiContract#path - Range: [(18,4)-(18,23)] - Location: diff --git a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.jsonld b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.jsonld index d012b92b9b..443d282119 100644 --- a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.jsonld +++ b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.jsonld @@ -642,6 +642,227 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/property/property/property", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "property" + } + ], + "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/Directive": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "Directive" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/property/property/property/customDomainProperties/Directive/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/Directive" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "operation" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "arg" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/Directive": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "Directive" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/customDomainProperties/Directive/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/Directive" + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/Directive": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "Directive" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/shape/Query/supportedOperation/operation/customDomainProperties/Directive/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/Directive" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/graphql-directives.graphql#/declares/scalar/Scalar", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.jsonld b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.jsonld index 84c39efb18..ed75cc1dc6 100644 --- a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.jsonld +++ b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.jsonld @@ -189,6 +189,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/link.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.jsonld b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.jsonld index d018fa0772..3507c96cad 100644 --- a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.jsonld +++ b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.jsonld @@ -916,6 +916,584 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "authors2" + } + ], + "http://a.ml/vocabularies/federation#federationMetadata": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2/federation-metadata", + "@type": [ + "http://a.ml/vocabularies/federation#ShapeFederationMetadata", + "http://a.ml/vocabularies/federation#FederationMetadata", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/federation#overrideFrom": [ + { + "@value": "authors" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://a.ml/vocabularies/federation#requires": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/requires/property-shape-path", + "@type": [ + "http://a.ml/vocabularies/shapes#PropertyShapePath", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#path": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/requires/property-shape-path/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors3/requires/property-shape-path/path/property/default-property", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors2" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "authors2" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "authors3" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/array/default-array/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://a.ml/vocabularies/federation#provides": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/provides/property-shape-path", + "@type": [ + "http://a.ml/vocabularies/shapes#PropertyShapePath", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#path": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/provides/property-shape-path/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors4/provides/property-shape-path/path/property/error", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "error" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "authors4" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors5", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors5/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors5/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors5/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors5/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "authors5" + } + ], + "http://a.ml/vocabularies/federation#federationMetadata": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/property/property/authors5/federation-metadata", + "@type": [ + "http://a.ml/vocabularies/federation#ShapeFederationMetadata", + "http://a.ml/vocabularies/federation#FederationMetadata", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/federation#inaccessible": [ + { + "@value": true + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "books" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/expects/request/parameter/parameter/count", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "count" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/expects/request/parameter/parameter/count/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/federation#federationMetadata": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Query/supportedOperation/books/federation-metadata", + "@type": [ + "http://a.ml/vocabularies/federation#ShapeFederationMetadata", + "http://a.ml/vocabularies/federation#FederationMetadata", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/federation#shareable": [ + { + "@value": true + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-field-directives.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.jsonld b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.jsonld index d9cd9426c5..081f013adb 100644 --- a/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.jsonld +++ b/amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.jsonld @@ -414,6 +414,277 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/property/property/authors", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/property/property/authors/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/property/property/authors/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/property/property/authors/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/property/property/authors/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "authors" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "books" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/expects/request/parameter/parameter/count", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "count" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/expects/request/parameter/parameter/count/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ], + "http://a.ml/vocabularies/federation#federationMetadata": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/expects/request/parameter/parameter/count/federation-metadata", + "@type": [ + "http://a.ml/vocabularies/federation#ShapeFederationMetadata", + "http://a.ml/vocabularies/federation#FederationMetadata", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/federation#inaccessible": [ + { + "@value": true + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql-federation/tck/apis/valid/root-innacessible-arg.graphql#/declares/shape/Query/supportedOperation/books/returns/response/default/union/default-union/anyOf/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.report b/amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.report deleted file mode 100644 index 9534de667e..0000000000 --- a/amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.report +++ /dev/null @@ -1,14 +0,0 @@ -ModelId: file://amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql -Profile: GraphQL -Conforms: false -Number of results: 1 - -Level: Violation - -- Constraint: http://a.ml/vocabularies/amf/core#unresolved-reference - Message: Unresolved reference 'Query' - Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql#/web-api/endpoint/%2Fquery%2Frelay/supportedOperation/query/Query.relay/returns/resp/default/payload/default/unresolved - Property: - Range: [(2,11)-(2,17)] - Location: file://amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql diff --git a/amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.graphql b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql similarity index 100% rename from amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.graphql rename to amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql diff --git a/amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.jsonld b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.jsonld similarity index 69% rename from amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.jsonld rename to amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.jsonld index 15aed0e94b..d3a119af35 100644 --- a/amf-cli/shared/src/test/resources/graphql/corner-cases/not-fixed/recursion-with-query.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.jsonld @@ -96,12 +96,23 @@ ], "raml-shapes:schema": [ { - "@id": "#/web-api/endpoint/%2Fquery%2Frelay/supportedOperation/query/Query.relay/returns/resp/default/payload/default/unresolved", + "@id": "#/web-api/endpoint/%2Fquery%2Frelay/supportedOperation/query/Query.relay/returns/resp/default/payload/default/shape/default-node", "@type": [ + "shacl:NodeShape", "raml-shapes:AnyShape", "shacl:Shape", "raml-shapes:Shape", "doc:DomainElement" + ], + "doc:link-target": [ + { + "@id": "#/declares/shape/Query" + } + ], + "doc:link-label": [ + { + "@value": "Query" + } ] } ] @@ -143,6 +154,66 @@ ] } ], + "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/relay", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/relay/shape/default-node", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "doc:link-target": [ + { + "@id": "#/declares/shape/Query" + } + ], + "doc:link-label": [ + { + "@value": "Query" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "relay" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + } + ], "@context": { "@base": "file://amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql", "shacl": "http://www.w3.org/ns/shacl#", diff --git a/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.report b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.report new file mode 100644 index 0000000000..88fd432468 --- /dev/null +++ b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.report @@ -0,0 +1,4 @@ +ModelId: file://amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-query.graphql +Profile: GraphQL +Conforms: true +Number of results: 0 diff --git a/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-unions.jsonld b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-unions.jsonld index 26513ad6f9..a733d88c41 100644 --- a/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-unions.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/corner-cases/recursion-with-unions.jsonld @@ -325,6 +325,59 @@ } ] }, + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/relay", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/relay/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "relay" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/union/IssueTimelineItems", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.jsonld index 040111d763..e2e14076c1 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.report index 26cee53afa..673b27b382 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-!-token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: '!' Severity: Violation diff --git "a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.jsonld" "b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.jsonld" index 99a9c55b18..2a2cbfe214 100644 --- "a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.jsonld" +++ "b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.jsonld" @@ -47,8 +47,27 @@ ] } ], + "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + } + ], "@context": { "@base": "file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-%22-token.graphql", + "raml-shapes": "http://a.ml/vocabularies/shapes#", + "shacl": "http://www.w3.org/ns/shacl#", "doc": "http://a.ml/vocabularies/document#", "apiContract": "http://a.ml/vocabularies/apiContract#", "core": "http://a.ml/vocabularies/core#" diff --git "a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.report" "b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.report" index 9654262973..c301956646 100644 --- "a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.report" +++ "b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-\"-token.report" @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-"-token.graphql Profile: GraphQL Conforms: false -Number of results: 2 +Number of results: 3 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: Location: +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-%22-token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error: Unexpected end of file Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.jsonld index b029128d6e..0b9217aea0 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.report index 9b77eb9bd1..02ca0ded09 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-&-token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: '&' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-*-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-*-token.jsonld index 7d9764f449..997d31f22f 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-*-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-*-token.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.jsonld index 5c9d64f0b2..36715162a1 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.report index 95968b35a1..0b42d1fcfe 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation @@ -12,3 +12,11 @@ Level: Violation Property: Range: Location: + +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous---token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.jsonld index 936b728530..7908d3e7fb 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.report index 488b6063a8..16b2d536e4 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-:-token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: ':' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-;-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-;-token.jsonld index 2d46c0dfc2..2dd0ef0c98 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-;-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-;-token.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.jsonld index 4cfc571cea..bb6650a310 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.report index e19b6c9101..c2de8514d2 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-@-token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: ':' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.jsonld index 27dc184cef..bb40cafaa5 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.report index 8406bab4a1..b8c242647f 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.graphql Profile: GraphQL Conforms: false -Number of results: 4 +Number of results: 5 Level: Violation @@ -29,6 +29,14 @@ Level: Violation Range: Location: +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-tokens.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: '!' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.jsonld index 0ffe990c10..92ac111ab7 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.report index fb060dc4ef..c1bb2c72c9 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-|-token.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/extraneous-%7C-token.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: '|' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.jsonld index b84b86eb6d..7e295d5151 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.report index 616b225673..c988b68ee5 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.report @@ -1,4 +1,14 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.graphql Profile: GraphQL -Conforms: true -Number of results: 0 +Conforms: false +Number of results: 1 + +Level: Violation + +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-colon.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-0.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-0.jsonld index 9f73ff660d..77ad1c2518 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-0.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-0.jsonld @@ -144,6 +144,53 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-1.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-1.jsonld index 985a74ff02..e2d3afd552 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-1.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-1.jsonld @@ -144,6 +144,53 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-2.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-2.jsonld index dfc9a8004d..83e8094169 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-2.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-2.jsonld @@ -266,6 +266,89 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "#/declares/shape/Query/property/property/another", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/another/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "another" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-3.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-3.jsonld index 412ea54712..9ad34d7d66 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-3.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-3.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-4.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-4.jsonld index 1eeba3dcc9..7052df66b5 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-4.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-4.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-5.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-5.jsonld index 14f5174e2f..dac53744e1 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-5.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-5.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-6.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-6.jsonld index 8429bedf1e..b6fb9de7b6 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-6.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-6.jsonld @@ -308,6 +308,167 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "raml-shapes:supportedOperation": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type", + "@type": [ + "raml-shapes:Operation", + "core:Operation", + "doc:DomainElement" + ], + "core:name": [ + { + "@value": "type" + } + ], + "raml-shapes:expects": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type/expects/request", + "@type": [ + "raml-shapes:Request", + "core:Request", + "doc:DomainElement" + ], + "raml-shapes:parameter": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type/expects/request/parameter/parameter/param", + "@type": [ + "raml-shapes:Parameter", + "core:Parameter", + "doc:DomainElement" + ], + "core:name": [ + { + "@value": "param" + } + ], + "raml-shapes:binding": [ + { + "@value": "query" + } + ], + "raml-shapes:required": [ + { + "@value": false + } + ], + "raml-shapes:schema": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type/expects/request/parameter/parameter/param/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "raml-shapes:returns": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type/returns/response", + "@type": [ + "raml-shapes:Response", + "core:Response", + "doc:DomainElement" + ], + "core:name": [ + { + "@value": "default" + } + ], + "raml-shapes:payload": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type/returns/response/default", + "@type": [ + "raml-shapes:Payload", + "core:Payload", + "doc:DomainElement" + ], + "core:name": [ + { + "@value": "default" + } + ], + "raml-shapes:schema": [ + { + "@id": "#/declares/shape/Query/supportedOperation/type/returns/response/default/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ] + } + ] + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-7.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-7.jsonld index 855fa673de..11d4fbccdb 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-7.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-7.jsonld @@ -334,6 +334,113 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name1", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name1/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "name1" + } + ] + }, + { + "@id": "#/declares/shape/Query/property/property/name2", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name2/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "name2" + } + ] + }, + { + "@id": "#/declares/shape/Query/property/property/name3", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name3/any/default-any", + "@type": [ + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + } + ], + "shacl:minCount": [ + { + "@value": 1 + } + ], + "shacl:name": [ + { + "@value": "name3" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-8.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-8.jsonld index 4beff2f468..9171b07d6b 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-8.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-field-type-8.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.jsonld index c1a9011c1c..3bcb271b93 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.report index f93346c78e..fa0ce02068 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket-and-lparen.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: 'namea' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.jsonld index b95e230494..f5244637fa 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.report index c2baae8863..7195bd3159 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-lbracket.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: 'name' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.jsonld index 0ed941c475..a57ea0e495 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.jsonld @@ -47,8 +47,27 @@ ] } ], + "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + } + ], "@context": { "@base": "file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.graphql", + "raml-shapes": "http://a.ml/vocabularies/shapes#", + "shacl": "http://www.w3.org/ns/shacl#", "doc": "http://a.ml/vocabularies/document#", "apiContract": "http://a.ml/vocabularies/apiContract#", "core": "http://a.ml/vocabularies/core#" diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.report index ef131ec3dd..441d40c3e8 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.graphql Profile: GraphQL Conforms: false -Number of results: 4 +Number of results: 5 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket-and-rparen.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: ':' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.jsonld index 638878543f..4db73b82c5 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.jsonld @@ -47,8 +47,27 @@ ] } ], + "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + } + ], "@context": { "@base": "file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.graphql", + "raml-shapes": "http://a.ml/vocabularies/shapes#", + "shacl": "http://www.w3.org/ns/shacl#", "doc": "http://a.ml/vocabularies/document#", "apiContract": "http://a.ml/vocabularies/apiContract#", "core": "http://a.ml/vocabularies/core#" diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.report index 10f7cf2579..568e1fd1a1 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rbracket.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error: Unexpected end of file Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.jsonld index bc67d6385f..8c12dd92c4 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.report index 470769feea..83999d0804 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-rparen.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: ')' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.jsonld index 2e1ebcc58d..3db17ded64 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.report index 3339e30596..770b3b0014 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-slbracket.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: ']' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-srbracket.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-srbracket.jsonld index 3c9b42334c..7bdbb2d183 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-srbracket.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-srbracket.jsonld @@ -204,6 +204,92 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/names", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/names/array/default-array", + "@type": [ + "raml-shapes:ArrayShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:items": [ + { + "@id": "#/declares/shape/Query/property/property/names/array/default-array/union/default-union", + "@type": [ + "raml-shapes:UnionShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:anyOf": [ + { + "@id": "#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "raml-shapes:NilShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ] + }, + { + "@id": "#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "names" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member-remixed.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member-remixed.jsonld index 555d2ce67d..9d30928b28 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member-remixed.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member-remixed.jsonld @@ -278,7 +278,7 @@ ] }, { - "@id": "#/declares/shape/DType", + "@id": "#/declares/shape/Query", "@type": [ "shacl:NodeShape", "raml-shapes:AnyShape", @@ -288,7 +288,7 @@ ], "shacl:property": [ { - "@id": "#/declares/shape/DType/property/property/D", + "@id": "#/declares/shape/Query/property/property/name", "@type": [ "shacl:PropertyShape", "shacl:Shape", @@ -297,7 +297,7 @@ ], "raml-shapes:range": [ { - "@id": "#/declares/shape/DType/property/property/D/scalar/default-scalar", + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", "@type": [ "raml-shapes:ScalarShape", "raml-shapes:AnyShape", @@ -319,14 +319,14 @@ ], "shacl:name": [ { - "@value": "D" + "@value": "name" } ] } ], "shacl:name": [ { - "@value": "DType" + "@value": "Query" } ] }, @@ -380,6 +380,59 @@ "@value": "UnionType" } ] + }, + { + "@id": "#/declares/shape/DType", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/DType/property/property/D", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/DType/property/property/D/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "D" + } + ] + } + ], + "shacl:name": [ + { + "@value": "DType" + } + ] } ], "@context": { diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member.jsonld index cc449550f7..644ca67f45 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/missing-union-member.jsonld @@ -172,7 +172,7 @@ ], "doc:declares": [ { - "@id": "#/declares/shape/AType", + "@id": "#/declares/shape/BType", "@type": [ "shacl:NodeShape", "raml-shapes:AnyShape", @@ -182,7 +182,7 @@ ], "shacl:property": [ { - "@id": "#/declares/shape/AType/property/property/a", + "@id": "#/declares/shape/BType/property/property/b", "@type": [ "shacl:PropertyShape", "shacl:Shape", @@ -191,7 +191,7 @@ ], "raml-shapes:range": [ { - "@id": "#/declares/shape/AType/property/property/a/scalar/default-scalar", + "@id": "#/declares/shape/BType/property/property/b/scalar/default-scalar", "@type": [ "raml-shapes:ScalarShape", "raml-shapes:AnyShape", @@ -213,19 +213,19 @@ ], "shacl:name": [ { - "@value": "a" + "@value": "b" } ] } ], "shacl:name": [ { - "@value": "AType" + "@value": "BType" } ] }, { - "@id": "#/declares/shape/BType", + "@id": "#/declares/shape/CType", "@type": [ "shacl:NodeShape", "raml-shapes:AnyShape", @@ -235,7 +235,7 @@ ], "shacl:property": [ { - "@id": "#/declares/shape/BType/property/property/b", + "@id": "#/declares/shape/CType/property/property/c", "@type": [ "shacl:PropertyShape", "shacl:Shape", @@ -244,7 +244,7 @@ ], "raml-shapes:range": [ { - "@id": "#/declares/shape/BType/property/property/b/scalar/default-scalar", + "@id": "#/declares/shape/CType/property/property/c/scalar/default-scalar", "@type": [ "raml-shapes:ScalarShape", "raml-shapes:AnyShape", @@ -266,19 +266,19 @@ ], "shacl:name": [ { - "@value": "b" + "@value": "c" } ] } ], "shacl:name": [ { - "@value": "BType" + "@value": "CType" } ] }, { - "@id": "#/declares/shape/CType", + "@id": "#/declares/shape/Query", "@type": [ "shacl:NodeShape", "raml-shapes:AnyShape", @@ -288,7 +288,7 @@ ], "shacl:property": [ { - "@id": "#/declares/shape/CType/property/property/c", + "@id": "#/declares/shape/Query/property/property/name", "@type": [ "shacl:PropertyShape", "shacl:Shape", @@ -297,7 +297,7 @@ ], "raml-shapes:range": [ { - "@id": "#/declares/shape/CType/property/property/c/scalar/default-scalar", + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", "@type": [ "raml-shapes:ScalarShape", "raml-shapes:AnyShape", @@ -319,14 +319,14 @@ ], "shacl:name": [ { - "@value": "c" + "@value": "name" } ] } ], "shacl:name": [ { - "@value": "CType" + "@value": "Query" } ] }, @@ -396,6 +396,59 @@ "@value": "UnionType" } ] + }, + { + "@id": "#/declares/shape/AType", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/AType/property/property/a", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/AType/property/property/a/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "a" + } + ] + } + ], + "shacl:name": [ + { + "@value": "AType" + } + ] } ], "@context": { diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/misspelling-type.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/misspelling-type.jsonld index 88e5ae7787..131036a657 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/misspelling-type.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/misspelling-type.jsonld @@ -171,6 +171,59 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:property": [ + { + "@id": "#/declares/shape/Query/property/property/name", + "@type": [ + "shacl:PropertyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "raml-shapes:range": [ + { + "@id": "#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "raml-shapes:ScalarShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "shacl:minCount": [ + { + "@value": 0 + } + ], + "shacl:name": [ + { + "@value": "name" + } + ] + } + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Dog", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.jsonld index 06f78e25c2..8547de1653 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.report index 396053da2c..ccd32a2d03 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-{-with-[.graphql Profile: GraphQL Conforms: false -Number of results: 1 +Number of results: 2 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/replace-%7B-with-%5B.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#antlr-error Message: Syntax error in the following text: '[' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.jsonld index 6138ca79ba..6a53916b30 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.report index f211b23937..c9227f12a1 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.report @@ -1,4 +1,14 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.graphql Profile: GraphQL -Conforms: true -Number of results: 0 +Conforms: false +Number of results: 1 + +Level: Violation + +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/scalar-inside-type.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.jsonld b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.jsonld index 69c8c4207b..600c094c3b 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.jsonld @@ -48,6 +48,21 @@ } ], "doc:declares": [ + { + "@id": "#/declares/shape/Query", + "@type": [ + "shacl:NodeShape", + "raml-shapes:AnyShape", + "shacl:Shape", + "raml-shapes:Shape", + "doc:DomainElement" + ], + "shacl:name": [ + { + "@value": "Query" + } + ] + }, { "@id": "#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.report b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.report index 50407c08d1..8f347f0014 100644 --- a/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.report +++ b/amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.report @@ -1,4 +1,14 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.graphql Profile: GraphQL -Conforms: true -Number of results: 0 +Conforms: false +Number of results: 1 + +Level: Violation + +- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition + Message: Type definitions must have at least one field + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/syntax-recovery/type-inside-type.graphql#/declares/shape/Query + Property: http://www.w3.org/ns/shacl#property + Range: [(1,0)-(1,10)] + Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.federation.report index fb328e57d4..33c6a48043 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.federation.report @@ -8,15 +8,15 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#DomainElement-name-invalidIntrospectionName Message: Name must not begin with '__' as this is used exclusively by GraphQL’s introspection system Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/web-api/endpoint/%2Fquery%2F__string - Property: http://a.ml/vocabularies/core#name - Range: [(6,4)-(6,12)] + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/declares/shape/__Query + Property: http://www.w3.org/ns/shacl#name + Range: [(5,5)-(5,12)] Location: - Constraint: http://a.ml/vocabularies/amf/parser#DomainElement-name-invalidIntrospectionName Message: Name must not begin with '__' as this is used exclusively by GraphQL’s introspection system Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/web-api/endpoint/%2Fquery%2F__string/supportedOperation/query/__Query.__string + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/declares/shape/__Query/supportedOperation/__string Property: http://a.ml/vocabularies/core#name Range: [(6,4)-(6,12)] Location: @@ -24,7 +24,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#DomainElement-name-invalidIntrospectionName Message: Name must not begin with '__' as this is used exclusively by GraphQL’s introspection system Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/web-api/endpoint/%2Fquery%2F__string/supportedOperation/query/__Query.__string/expects/request/parameter/parameter/query/__arg + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/declares/shape/__Query/supportedOperation/__string/expects/request/parameter/parameter/__arg Property: http://a.ml/vocabularies/core#name Range: [(6,13)-(6,18)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.report index fb328e57d4..33c6a48043 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.report @@ -8,15 +8,15 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#DomainElement-name-invalidIntrospectionName Message: Name must not begin with '__' as this is used exclusively by GraphQL’s introspection system Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/web-api/endpoint/%2Fquery%2F__string - Property: http://a.ml/vocabularies/core#name - Range: [(6,4)-(6,12)] + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/declares/shape/__Query + Property: http://www.w3.org/ns/shacl#name + Range: [(5,5)-(5,12)] Location: - Constraint: http://a.ml/vocabularies/amf/parser#DomainElement-name-invalidIntrospectionName Message: Name must not begin with '__' as this is used exclusively by GraphQL’s introspection system Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/web-api/endpoint/%2Fquery%2F__string/supportedOperation/query/__Query.__string + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/declares/shape/__Query/supportedOperation/__string Property: http://a.ml/vocabularies/core#name Range: [(6,4)-(6,12)] Location: @@ -24,7 +24,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#DomainElement-name-invalidIntrospectionName Message: Name must not begin with '__' as this is used exclusively by GraphQL’s introspection system Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/web-api/endpoint/%2Fquery%2F__string/supportedOperation/query/__Query.__string/expects/request/parameter/parameter/query/__arg + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/introspection-root.api.graphql#/declares/shape/__Query/supportedOperation/__string/expects/request/parameter/parameter/__arg Property: http://a.ml/vocabularies/core#name Range: [(6,13)-(6,18)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.federation.report index 05705eee7d..649132bfb4 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.federation.report @@ -5,26 +5,26 @@ Number of results: 3 Level: Violation -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type-in-endpoint +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type Message: Type 'Object1' from argument 'input_' must be an input type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/web-api/endpoint/%2Fquery%2FobjectArgument + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(7,19)-(7,34)] Location: -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type-in-endpoint +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type Message: Type 'Interface' from argument 'input_' must be an input type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/web-api/endpoint/%2Fquery%2FinterfaceArgument + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(8,22)-(8,39)] Location: -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type-in-endpoint +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type Message: Type 'Union' from argument 'input_' must be an input type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/web-api/endpoint/%2Fquery%2FunionArgument + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(9,18)-(9,31)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.report index 05705eee7d..649132bfb4 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.report @@ -5,26 +5,26 @@ Number of results: 3 Level: Violation -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type-in-endpoint +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type Message: Type 'Object1' from argument 'input_' must be an input type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/web-api/endpoint/%2Fquery%2FobjectArgument + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(7,19)-(7,34)] Location: -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type-in-endpoint +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type Message: Type 'Interface' from argument 'input_' must be an input type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/web-api/endpoint/%2Fquery%2FinterfaceArgument + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(8,22)-(8,39)] Location: -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type-in-endpoint +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-input-type Message: Type 'Union' from argument 'input_' must be an input type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/web-api/endpoint/%2Fquery%2FunionArgument + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-input-type-object-arguments.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(9,18)-(9,31)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.federation.report index 1c234e5ad9..75402c1375 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.federation.report @@ -5,18 +5,18 @@ Number of results: 2 Level: Violation -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type-in-endpoint - Message: Type 'InputType' from field 'Query.inputReturnField' must be an output type +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type + Message: Type 'InputType' from field 'inputReturnField' must be an output type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/web-api/endpoint/%2Fquery%2FinputReturnField + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(6,4)-(6,31)] Location: -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type-in-endpoint - Message: Type '[InputType]' from field 'Query.inputReturnFieldArray' must be an output type +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type + Message: Type '[InputType]' from field 'inputReturnFieldArray' must be an output type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/web-api/endpoint/%2Fquery%2FinputReturnFieldArray + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(7,4)-(7,38)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.report index 1c234e5ad9..75402c1375 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.report @@ -5,18 +5,18 @@ Number of results: 2 Level: Violation -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type-in-endpoint - Message: Type 'InputType' from field 'Query.inputReturnField' must be an output type +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type + Message: Type 'InputType' from field 'inputReturnField' must be an output type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/web-api/endpoint/%2Fquery%2FinputReturnField + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(6,4)-(6,31)] Location: -- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type-in-endpoint - Message: Type '[InputType]' from field 'Query.inputReturnFieldArray' must be an output type +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-output-type + Message: Type '[InputType]' from field 'inputReturnFieldArray' must be an output type Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/web-api/endpoint/%2Fquery%2FinputReturnFieldArray + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/is-not-output-type-query-fields.api.graphql#/declares/shape/Query Property: http://www.w3.org/ns/shacl#property Range: [(7,4)-(7,38)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.federation.report index ae0ce1ae47..164c212116 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.graphql Profile: GraphQL Conforms: false -Number of results: 11 +Number of results: 12 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.report index 63dc355e92..164c212116 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-argument.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.federation.report index ca33a3f940..10b21533f9 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.report index a5b4797c22..10b21533f9 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum-value.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.federation.report index 977b707516..8e0f2b5bc5 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.report index d4bfc99d9b..8e0f2b5bc5 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-enum.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.federation.report index 8df8d6f0c8..afff9be926 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.report index ba4823acfa..afff9be926 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input-fields.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.federation.report index ae9461b160..dde6a482e5 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.report index 1087b901ec..dde6a482e5 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-input.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.federation.report index 6c01e0be10..ce5b72c4a6 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.report index 941c9eb3e2..ce5b72c4a6 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-interface.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.federation.report index d1ae8e56eb..8bc337f49b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.report index f6665678f6..8bc337f49b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-object.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.federation.report index 541e8dd6dc..2938d577ea 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to OBJECT 'MyObject' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.report index deff633412..2938d577ea 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-scalar.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.federation.report index 9aac0471b5..549dc3a4c2 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.federation.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.report index f565a4c5f3..549dc3a4c2 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.report @@ -8,7 +8,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-schema.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.federation.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.federation.report index 77ae1a63d8..5f52468d26 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.federation.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.federation.report @@ -1,7 +1,7 @@ ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.graphql Profile: GraphQL Conforms: false -Number of results: 12 +Number of results: 13 Level: Violation @@ -13,6 +13,14 @@ Level: Violation Range: [(1,7)-(1,19)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application + Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' + Severity: Violation + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.graphql#/declares/shape/Query/property/property/name + Property: http://a.ml/vocabularies/document#customDomainProperties + Range: [(6,17)-(6,29)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to SCALAR 'MyScalar' Severity: Violation diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.report b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.report index 95cfddba26..5f52468d26 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.report +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.report @@ -16,7 +16,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-directive-application Message: Directive 'MyDirective' cannot be applied to FIELD_DEFINITION 'name' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.graphql#/web-api/endpoint/%2Fquery%2Fname + Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/wrong-directive-location-union.api.graphql#/declares/shape/Query/property/property/name Property: http://a.ml/vocabularies/document#customDomainProperties Range: [(6,17)-(6,29)] Location: diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.jsonld index f4a37abc04..19cb317d29 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/MyObj", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.resolved.jsonld index 9a6d00db27..cdd701292b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-enum-values.api.graphql#/declares/shape/MyObj", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.jsonld index cb9a4beeca..646fc2716f 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.jsonld @@ -1157,6 +1157,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/MyNestedInputObj", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.resolved.jsonld index c99fc2ea5e..596c62d440 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.resolved.jsonld @@ -1674,6 +1674,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-input-object-values.api.graphql#/declares/shape/MyNestedInputObj", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.jsonld index 82820877b6..ab3c91cc4b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/MyObj", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.resolved.jsonld index 0dcb771ccd..6785ab1a78 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/argument-scalar-values.api.graphql#/declares/shape/MyObj", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.jsonld index f5e10cf434..33972a0d0f 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.jsonld @@ -359,6 +359,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/CatOwner", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.resolved.jsonld index 657e55f42c..ebcb84103e 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.resolved.jsonld @@ -907,6 +907,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/covariance.api.graphql#/declares/shape/CatOwner", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.jsonld index 6aa1de1e75..6d85873afc 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/shape/Query/property/property/date", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/shape/Query/property/property/date/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/scalar/Date" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Date" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "date" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/scalar/Date", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.resolved.jsonld index 001eb2ac81..eb2be95bcb 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.resolved.jsonld @@ -181,6 +181,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/shape/Query/property/property/date", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/scalar/Date", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Date" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "date" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql#/declares/scalar/Date", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.jsonld index edd0ec73bf..e0651510f1 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Query/property/property/person", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Query/property/property/person/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.resolved.jsonld index c9af0b8542..9535aa1e1b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.resolved.jsonld @@ -181,6 +181,176 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Query/property/property/person", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person/property/property/firstName", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person/property/property/firstName/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "firstName" + } + ], + "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/deprecated": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "deprecated" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person/property/property/firstName/customDomainProperties/deprecated/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#reason": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person/property/property/firstName/customDomainProperties/deprecated/data-node/reason", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Use `name` instead" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "reason" + } + ] + } + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/deprecated" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/deprecated.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.jsonld index 728dfa9c14..2dafc6fb99 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/scalar/MyEnum", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.resolved.jsonld index 1a48414558..a545f46b35 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions-enum.api.graphql#/declares/scalar/MyEnum", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.jsonld index b71d538c91..4cc2434c0c 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.jsonld @@ -228,6 +228,166 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "translate" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Translates a string from a given language into a different language." + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/expects/request/parameter/parameter/fromLanguage", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "fromLanguage" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "The original language that `text` is provided in." + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/expects/request/parameter/parameter/fromLanguage/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.resolved.jsonld index 9e109569e5..4982317243 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.resolved.jsonld @@ -233,6 +233,166 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "translate" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Translates a string from a given language into a different language." + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/expects/request/parameter/parameter/fromLanguage", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "fromLanguage" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "The original language that `text` is provided in." + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/expects/request/parameter/parameter/fromLanguage/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Query/supportedOperation/translate/returns/response/default/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/descriptions.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.jsonld index 3004dd8574..23784093a1 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.jsonld @@ -755,6 +755,102 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "rootField" + } + ], + "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/example": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "example" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField/customDomainProperties/example/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#text": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField/customDomainProperties/example/data-node/text", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Jorge" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "text" + } + ] + } + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/example" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/MyObject", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.resolved.jsonld index f741989e2d..be91fcf689 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.resolved.jsonld @@ -760,6 +760,102 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "rootField" + } + ], + "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/example": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "example" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField/customDomainProperties/example/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#text": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/Query/property/property/rootField/customDomainProperties/example/data-node/text", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Jorge" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "text" + } + ] + } + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/example" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-applications.api.graphql#/declares/shape/MyObject", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.jsonld index 3de1e063af..14be72dac6 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.jsonld @@ -214,6 +214,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.resolved.jsonld index d2d5fac77e..c83a84626d 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.resolved.jsonld @@ -219,6 +219,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-arguments.api.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.jsonld index 32678f8808..a267114bae 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/mutation", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.resolved.jsonld index 6d8beefc55..64cbdc25cc 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-locations.api.graphql#/declares/mutation", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.jsonld index 79e743b96e..e41404f8ea 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.jsonld @@ -189,6 +189,77 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ], + "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/MyDirective": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "MyDirective" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query/customDomainProperties/MyDirective/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/MyDirective" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.resolved.jsonld index eb8d918841..5d098d50f6 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.resolved.jsonld @@ -194,6 +194,77 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ], + "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/MyDirective": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "MyDirective" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/shape/Query/customDomainProperties/MyDirective/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/MyDirective" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-multitarget.api.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.jsonld index 7b9c8eccb8..5f1ee4f26a 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.jsonld @@ -189,6 +189,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.resolved.jsonld index 966eaef73a..c17cb0bdc2 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.resolved.jsonld @@ -194,6 +194,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/directive-simple.api.graphql#/declares/MyDirective", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.jsonld index 97be6b0604..3316830e19 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/scalar/Planet", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.resolved.jsonld index 144faacb23..4a5c85511e 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-enum.api.graphql#/declares/scalar/Planet", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.jsonld index f052a3e5a9..a9f651bbd8 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/InputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.resolved.jsonld index d828d06ead..72c7dfa412 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-input-type.api.graphql#/declares/shape/InputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.jsonld index 6adac88862..11b971e297 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/HasName", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.resolved.jsonld index e6414d4bbc..9c3aedf5cd 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-interface.api.graphql#/declares/shape/HasName", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.jsonld index 9aedfdab5b..ad5231bc0b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Location", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.resolved.jsonld index d5a7a809b8..1d08a6c06d 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-objects.api.graphql#/declares/shape/Location", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.jsonld index 6dc23b039f..73b60bf656 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/scalar/Date", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.resolved.jsonld index 3e3911b3ea..f2c3fbcd77 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql#/declares/scalar/Date", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.jsonld index 7593f6e540..b8b79c3938 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.resolved.jsonld index c93a070048..3a1e9d68af 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-union.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.jsonld index bb9fd9d5e0..9564ccd904 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.jsonld @@ -150,6 +150,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/BaseType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.resolved.jsonld index facd013734..a39cc52cce 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.resolved.jsonld @@ -155,6 +155,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-chain-covariant.graphql#/declares/shape/BaseType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.jsonld index 63af3047e7..9685ab95d9 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.resolved.jsonld index 5dc4f7fabe..bed7eb383f 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-double.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.jsonld index dcbe12a330..80ae7b46cd 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.resolved.jsonld index dd1323220b..711a94e00a 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-simple.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.dumped.graphql b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.dumped.graphql index 13149da96f..3c06e9d583 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.dumped.graphql +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.dumped.graphql @@ -12,13 +12,13 @@ interface HasName { name: String! } -interface HasSurname { - surname: String! -} - interface HasFullName implements HasName & HasSurname { name: String! middleName: String! surname: String! } +interface HasSurname { + surname: String! +} + diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.jsonld index d1c1f2860d..a064166160 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Person", "@type": [ @@ -376,64 +429,6 @@ } ] }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname", - "@type": [ - "http://www.w3.org/ns/shacl#NodeShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#isAbstract": [ - { - "@value": true - } - ], - "http://www.w3.org/ns/shacl#property": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname", - "@type": [ - "http://www.w3.org/ns/shacl#PropertyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#range": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname/scalar/default-scalar", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#string" - } - ] - } - ], - "http://www.w3.org/ns/shacl#minCount": [ - { - "@value": 1 - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "surname" - } - ] - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "HasSurname" - } - ] - }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasFullName", "@type": [ @@ -615,6 +610,64 @@ ] } ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#isAbstract": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "surname" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "HasSurname" + } + ] } ] } diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.resolved.jsonld index c4507c2c18..4ed1dd8b7f 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Query/property/property/text", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Query/property/property/text/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "text" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/Person", "@type": [ @@ -609,64 +662,6 @@ } ] }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname", - "@type": [ - "http://www.w3.org/ns/shacl#NodeShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#isAbstract": [ - { - "@value": true - } - ], - "http://www.w3.org/ns/shacl#property": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname", - "@type": [ - "http://www.w3.org/ns/shacl#PropertyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#range": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname/scalar/default-scalar", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#string" - } - ] - } - ], - "http://www.w3.org/ns/shacl#minCount": [ - { - "@value": 1 - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "surname" - } - ] - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "HasSurname" - } - ] - }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasFullName", "@type": [ @@ -914,6 +909,64 @@ ] } ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#isAbstract": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/interface-with-interface.graphql#/declares/shape/HasSurname/property/property/surname/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "surname" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "HasSurname" + } + ] } ] } diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.jsonld index 8297c98dc2..1d2b8a40fc 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/InputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.resolved.jsonld index a420ec9948..67382fa129 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql#/declares/shape/InputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.jsonld index 941881cfcd..bf6099be66 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql#/declares/shape/InputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.dumped.graphql b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.dumped.graphql index cea502db16..53394359c4 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.dumped.graphql +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.dumped.graphql @@ -2,10 +2,6 @@ type Query { a: String } -input InputType { - name: String -} - interface Interface { queryInputType(input_: InputType): String queryEnum(input_: Enum): String @@ -19,3 +15,7 @@ enum Enum { } scalar Pepe +input InputType { + name: String +} + diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.jsonld index 48711feafc..db9813deb1 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.jsonld @@ -171,64 +171,6 @@ } ], "http://a.ml/vocabularies/document#declares": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType", - "@type": [ - "http://www.w3.org/ns/shacl#NodeShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#property": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name", - "@type": [ - "http://www.w3.org/ns/shacl#PropertyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#range": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#string" - } - ] - } - ], - "http://www.w3.org/ns/shacl#minCount": [ - { - "@value": 0 - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "name" - } - ] - } - ], - "http://a.ml/vocabularies/shapes#inputOnly": [ - { - "@value": true - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "InputType" - } - ] - }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Interface", "@type": [ @@ -898,6 +840,117 @@ "@value": "Pepe" } ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#inputOnly": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "InputType" + } + ] } ] } diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.resolved.jsonld index 58d1a63e60..facbd2e549 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.resolved.jsonld @@ -176,64 +176,6 @@ } ], "http://a.ml/vocabularies/document#declares": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType", - "@type": [ - "http://www.w3.org/ns/shacl#NodeShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#property": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name", - "@type": [ - "http://www.w3.org/ns/shacl#PropertyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#range": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#string" - } - ] - } - ], - "http://www.w3.org/ns/shacl#minCount": [ - { - "@value": 0 - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "name" - } - ] - } - ], - "http://a.ml/vocabularies/shapes#inputOnly": [ - { - "@value": true - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "InputType" - } - ] - }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Interface", "@type": [ @@ -992,6 +934,117 @@ "@value": "Pepe" } ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#inputOnly": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "InputType" + } + ] } ] } diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.dumped.graphql b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.dumped.graphql index 66c9bc1c0d..1750b4398c 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.dumped.graphql +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.dumped.graphql @@ -2,20 +2,20 @@ type Query { a: String } -type Object { - queryInputType(input_: InputType): String - queryEnum(input_: Enum): String - queryScalar(input_: String): String - queryCustomScalar(input_: Pepe): String +enum Enum { + A + B } +scalar Pepe input InputType { name: String } -enum Enum { - A - B +type Object { + queryInputType(input_: InputType): String + queryEnum(input_: Enum): String + queryScalar(input_: String): String + queryCustomScalar(input_: Pepe): String } -scalar Pepe diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.jsonld index 34063be392..c558c045da 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.jsonld @@ -171,6 +171,213 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Enum" + } + ], + "http://www.w3.org/ns/shacl#in": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/A", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "A" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "A" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_2": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/B", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "B" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "B" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Pepe", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Pepe" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#inputOnly": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "InputType" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Object", "@type": [ @@ -734,160 +941,6 @@ "@value": "Object" } ] - }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType", - "@type": [ - "http://www.w3.org/ns/shacl#NodeShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#property": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name", - "@type": [ - "http://www.w3.org/ns/shacl#PropertyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#range": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#string" - } - ] - } - ], - "http://www.w3.org/ns/shacl#minCount": [ - { - "@value": 0 - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "name" - } - ] - } - ], - "http://a.ml/vocabularies/shapes#inputOnly": [ - { - "@value": true - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "InputType" - } - ] - }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "Enum" - } - ], - "http://www.w3.org/ns/shacl#in": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/list", - "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", - "http://www.w3.org/2000/01/rdf-schema#_1": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/A", - "@type": [ - "http://a.ml/vocabularies/data#Scalar", - "http://a.ml/vocabularies/data#Node", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/data#value": [ - { - "@value": "A" - } - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://a.ml/vocabularies/core#name": [ - { - "@value": "A" - } - ] - } - ], - "http://www.w3.org/2000/01/rdf-schema#_2": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/B", - "@type": [ - "http://a.ml/vocabularies/data#Scalar", - "http://a.ml/vocabularies/data#Node", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/data#value": [ - { - "@value": "B" - } - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://a.ml/vocabularies/core#name": [ - { - "@value": "B" - } - ] - } - ] - } - ] - }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Pepe", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "Pepe" - } - ] } ] } diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.resolved.jsonld index 84ba636fca..67e33a6396 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.resolved.jsonld @@ -176,6 +176,213 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Enum" + } + ], + "http://www.w3.org/ns/shacl#in": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/A", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "A" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "A" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_2": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/B", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "B" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "B" + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Pepe", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Pepe" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Query/property/property/a", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Query/property/property/a/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "a" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#inputOnly": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "InputType" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/Object", "@type": [ @@ -833,160 +1040,6 @@ "@value": "Object" } ] - }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType", - "@type": [ - "http://www.w3.org/ns/shacl#NodeShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#property": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name", - "@type": [ - "http://www.w3.org/ns/shacl#PropertyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/shapes#range": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/shape/InputType/property/property/name/scalar/default-scalar", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#string" - } - ] - } - ], - "http://www.w3.org/ns/shacl#minCount": [ - { - "@value": 0 - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "name" - } - ] - } - ], - "http://a.ml/vocabularies/shapes#inputOnly": [ - { - "@value": true - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "InputType" - } - ] - }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "Enum" - } - ], - "http://www.w3.org/ns/shacl#in": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/list", - "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", - "http://www.w3.org/2000/01/rdf-schema#_1": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/A", - "@type": [ - "http://a.ml/vocabularies/data#Scalar", - "http://a.ml/vocabularies/data#Node", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/data#value": [ - { - "@value": "A" - } - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://a.ml/vocabularies/core#name": [ - { - "@value": "A" - } - ] - } - ], - "http://www.w3.org/2000/01/rdf-schema#_2": [ - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Enum/in/B", - "@type": [ - "http://a.ml/vocabularies/data#Scalar", - "http://a.ml/vocabularies/data#Node", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://a.ml/vocabularies/data#value": [ - { - "@value": "B" - } - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://a.ml/vocabularies/core#name": [ - { - "@value": "B" - } - ] - } - ] - } - ] - }, - { - "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-object-arguments.graphql#/declares/scalar/Pepe", - "@type": [ - "http://a.ml/vocabularies/shapes#ScalarShape", - "http://a.ml/vocabularies/shapes#AnyShape", - "http://www.w3.org/ns/shacl#Shape", - "http://a.ml/vocabularies/shapes#Shape", - "http://a.ml/vocabularies/document#DomainElement" - ], - "http://www.w3.org/ns/shacl#datatype": [ - { - "@id": "http://www.w3.org/2001/XMLSchema#anyType" - } - ], - "http://www.w3.org/ns/shacl#name": [ - { - "@value": "Pepe" - } - ] } ] } diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.jsonld index d139251bf8..3d017f4d14 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.jsonld @@ -537,6 +537,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Object1", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.resolved.jsonld index 019d24a98a..0959601413 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.resolved.jsonld @@ -767,6 +767,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-interface-fields.api.graphql#/declares/shape/Object1", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.jsonld index 7feb4b0780..541ed58b9a 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.jsonld @@ -305,6 +305,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/RootObject", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.resolved.jsonld index 5c8c5f51d2..527757f26e 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.resolved.jsonld @@ -310,6 +310,59 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-output-type-object-fields.api.graphql#/declares/shape/RootObject", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.jsonld index dc346b178e..2e8664a4dc 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.resolved.jsonld index e2a04a3256..9f974478ae 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/nested-interfaces.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.jsonld index e3a173f4fc..db147f4788 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.jsonld @@ -333,6 +333,211 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "setMessage" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/expects/request/parameter/parameter/message", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "message" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/expects/request/parameter/parameter/message/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Query/property/property/getMessage", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Query/property/property/getMessage/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "getMessage" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.resolved.jsonld index 00020efe13..7fa25816a2 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.resolved.jsonld @@ -338,6 +338,211 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "setMessage" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/expects/request/parameter/parameter/message", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "message" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/expects/request/parameter/parameter/message/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Mutation/supportedOperation/setMessage/returns/response/default/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Query/property/property/getMessage", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/no-schema.api.graphql#/declares/shape/Query/property/property/getMessage/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "getMessage" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.jsonld index 5bcfdff727..df43938e20 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/recursion.api.graphql#/declares/shape/Type", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.jsonld index 8d30a65089..9642ed2e97 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.jsonld @@ -413,6 +413,167 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyQuery", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyQuery/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyQuery/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyQuery" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyMutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyMutation/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyMutation/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyMutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MySubscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MySubscription/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MySubscription/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MySubscription" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.resolved.jsonld index 3a19efb777..a1782c71c5 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.resolved.jsonld @@ -418,6 +418,167 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyQuery", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyQuery/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyQuery/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyQuery" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyMutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyMutation/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MyMutation/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyMutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MySubscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MySubscription/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema-extends.graphql#/declares/shape/MySubscription/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MySubscription" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.jsonld index e60ea8ba77..fc3e3f7d2e 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.jsonld @@ -413,6 +413,167 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyQuery", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyQuery/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyQuery/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyQuery" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyMutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyMutation/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyMutation/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyMutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MySubscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MySubscription/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MySubscription/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MySubscription" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.resolved.jsonld index 0c8d66ef2a..11f33fe7f0 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.resolved.jsonld @@ -418,6 +418,167 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyQuery", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyQuery/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyQuery/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyQuery" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyMutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyMutation/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MyMutation/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MyMutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MySubscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MySubscription/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types-in-schema.graphql#/declares/shape/MySubscription/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "MySubscription" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.jsonld index d954219a30..551f6b8033 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.jsonld @@ -413,6 +413,167 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Mutation/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Mutation/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Subscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Subscription/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Subscription/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Subscription" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.resolved.jsonld index e8b31301ee..02716090a6 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.resolved.jsonld @@ -418,6 +418,167 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Mutation/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Mutation/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Subscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Subscription/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/root-types.graphql#/declares/shape/Subscription/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Subscription" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.jsonld index 2b366d990f..0520409d84 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Starship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.resolved.jsonld index 9745592ce0..832b2fe88d 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-arguments.api.graphql#/declares/shape/Starship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.jsonld index dbefbe83f5..c1454ff833 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/shape/Query/property/property/season", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/shape/Query/property/property/season/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Season" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "season" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.resolved.jsonld index ca058764c2..b355009b4d 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.resolved.jsonld @@ -181,6 +181,170 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/shape/Query/property/property/season", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Season" + } + ], + "http://www.w3.org/ns/shacl#in": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season/list", + "@type": "http://www.w3.org/2000/01/rdf-schema#Seq", + "http://www.w3.org/2000/01/rdf-schema#_1": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season/in/SPRING", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "SPRING" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "SPRING" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_2": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season/in/AUTUMN", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "AUTUMN" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "AUTUMN" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_3": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season/in/SUMMER", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "SUMMER" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "SUMMER" + } + ] + } + ], + "http://www.w3.org/2000/01/rdf-schema#_4": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season/in/WINTER", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "WINTER" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "WINTER" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "season" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-enum.api.graphql#/declares/scalar/Season", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.jsonld index 3ae126a00b..2efbc8e449 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.jsonld @@ -345,6 +345,219 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "changeUserStatus" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/expects/request/parameter/parameter/input_", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "input_" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/expects/request/parameter/parameter/input_/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/InputType" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "InputType" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/OutputType" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "OutputType" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/OutputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.resolved.jsonld index 0138da13be..94a6062954 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.resolved.jsonld @@ -350,6 +350,290 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "changeUserStatus" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/expects/request/parameter/parameter/input_", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "input_" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/InputType", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/InputType/property/property/randomText", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/InputType/property/property/randomText/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "randomText" + } + ] + } + ], + "http://a.ml/vocabularies/shapes#inputOnly": [ + { + "@value": true + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "InputType" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/Mutation/supportedOperation/changeUserStatus/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/OutputType", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/OutputType/property/property/success", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/OutputType/property/property/success/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "success" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "OutputType" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-input-type.api.graphql#/declares/shape/OutputType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.jsonld index a8f96c1e52..193b03f16a 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.jsonld @@ -202,6 +202,94 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "names" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.resolved.jsonld index 79fa1fd8eb..c7d7b73eae 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.resolved.jsonld @@ -207,6 +207,94 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-list.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "names" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.jsonld index 5720a437d4..2535f35228 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/ChessBoard", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.resolved.jsonld index 8e94d52dff..945a8d8c46 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.resolved.jsonld @@ -176,6 +176,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-matrix.api.graphql#/declares/shape/ChessBoard", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.jsonld index 1b17a23948..690730e9ef 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.jsonld @@ -395,6 +395,178 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "names" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names2", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names2/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names2/array/default-array/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "names2" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.resolved.jsonld index 79580c969a..1a95510b16 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.resolved.jsonld @@ -400,6 +400,178 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names/array/default-array/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "names" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names2", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names2/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-non-null.api.graphql#/declares/shape/Query/property/property/names2/array/default-array/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "names2" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.jsonld index 59316592db..8fb83f847c 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Query/property/property/person", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Query/property/property/person/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.resolved.jsonld index 6245bf0b4d..b255da4187 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.resolved.jsonld @@ -181,6 +181,97 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Query/property/property/person", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Person", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Person/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Person/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-object.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.jsonld index 2cf357bdab..fd3c2de4fc 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.jsonld @@ -662,6 +662,210 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/id", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "id" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/string", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/string/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "string" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/boolean", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/boolean/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "boolean" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/int", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/int/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "int" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/float", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/float/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "float" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.resolved.jsonld index e501ec5665..f7adf164a2 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.resolved.jsonld @@ -667,6 +667,210 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/id", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "id" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/string", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/string/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "string" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/boolean", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/boolean/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "boolean" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/int", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/int/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "int" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/float", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-scalars.api.graphql#/declares/shape/Query/property/property/float/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "float" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.jsonld index c53335ffe4..f5124b9154 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Query/property/property/searchResult", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Query/property/property/searchResult/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/union/SearchResult" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "SearchResult" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "searchResult" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.resolved.jsonld b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.resolved.jsonld index 0547030e44..fa9a4b415b 100644 --- a/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.resolved.jsonld @@ -181,6 +181,239 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Query/property/property/searchResult", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/union/SearchResult", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person/property/property/surname", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person/property/property/surname/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "surname" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Person" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Dog", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Dog/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Dog/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Dog/property/property/breed", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Dog/property/property/breed/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "breed" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Dog" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "SearchResult" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "searchResult" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/types-union.api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/parser/annotations/graphql.graphql b/amf-cli/shared/src/test/resources/parser/annotations/graphql.graphql index 59514575e2..84fbae3419 100644 --- a/amf-cli/shared/src/test/resources/parser/annotations/graphql.graphql +++ b/amf-cli/shared/src/test/resources/parser/annotations/graphql.graphql @@ -14,7 +14,7 @@ type Query { } type Mutation { - changeUserStatus(input_: InputType!): OutputType + changeUserStatus: OutputType } """ @@ -67,3 +67,7 @@ extend enum Planet { } scalar Date + +type OutputType { + success(input_: InputType!): Boolean +} \ No newline at end of file diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.jsonld index 5c69552a64..583a677cb2 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.jsonld @@ -543,6 +543,486 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "name" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultString", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultString" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultString/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultString/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "Darth Vader" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultInt", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultInt" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultInt/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultInt/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "7" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultFloat", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultFloat" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultFloat/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultFloat/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "6.9" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultBoolean", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultBoolean" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultBoolean/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultBoolean/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "false" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultID/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "123" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultEnum", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultEnum" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultEnum/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/scalar/Letter" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Letter" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultEnum/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "A" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/default-arguments.graphql#/declares/shape/Spaceship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.jsonld index 31a36c074a..338c727d72 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.jsonld @@ -543,6 +543,486 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "name" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultString", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultString" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultString/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultString/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "123" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultInt", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultInt" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultInt/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultInt/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "asdf" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultFloat", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultFloat" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultFloat/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultFloat/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "7" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultBoolean", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultBoolean" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultBoolean/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultBoolean/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "6.9" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#float" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultID/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "false" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#boolean" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultEnum", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testDefaultEnum" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultEnum/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/scalar/Letter" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Letter" + } + ] + } + ], + "http://a.ml/vocabularies/core#defaultValue": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/testDefaultEnum/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "123" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Query/supportedOperation/name/returns/response/default/union/default-union/anyOf/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/default-arguments/invalid-default-arguments.graphql#/declares/shape/Spaceship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.jsonld index 2d1a3f5cda..df729eb582 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.jsonld @@ -1516,6 +1516,476 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(3,14)-(3,21)]" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "property" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Property description" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#synthesized-field": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/source-map/synthesized-field/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://www.w3.org/ns/shacl#minCount" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/property/property/property" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(2,4)-(3,21)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "operation" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Operation description" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "arg" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Argument description" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(6,46)-(6,53)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#synthesized-field": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map/synthesized-field/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#binding" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map/synthesized-field/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#required" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(6,14)-(6,53)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#virtual-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/source-map/virtual-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/expects/request" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(6,56)-(6,63)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#virtual-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/source-map/virtual-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#virtual-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/source-map/virtual-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/returns/response" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/supportedOperation/operation" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(5,4)-(6,63)]" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#declared-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/source-map/declared-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/shape/Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(1,0)-(7,1)]" + } + ] + } + ] + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/block.graphql#/declares/scalar/Scalar", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.jsonld index 8cab3605e3..cbdbec6a4b 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.jsonld @@ -1516,6 +1516,476 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(3,14)-(3,21)]" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "property" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Property description" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#synthesized-field": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/source-map/synthesized-field/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://www.w3.org/ns/shacl#minCount" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/property/property/property" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(2,4)-(3,21)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "operation" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Operation description" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "arg" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Argument description" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(6,42)-(6,49)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#synthesized-field": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map/synthesized-field/element_1", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#binding" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map/synthesized-field/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://a.ml/vocabularies/shapes#required" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/parameter/parameter/arg" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(6,14)-(6,49)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#virtual-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request/source-map/virtual-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/expects/request" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(6,52)-(6,59)]" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#virtual-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default/source-map/virtual-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/default" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#virtual-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response/source-map/virtual-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/returns/response" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/supportedOperation/operation" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(5,4)-(6,59)]" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#declared-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/source-map/declared-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/shape/Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(1,0)-(7,1)]" + } + ] + } + ] + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/descriptions/simple.graphql#/declares/scalar/Scalar", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.jsonld index ab252730a2..8ac39c0351 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.jsonld @@ -257,6 +257,145 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ], + "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/MyDirective": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "MyDirective" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query/property/property/name/customDomainProperties/MyDirective/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#testString": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query/property/property/name/customDomainProperties/MyDirective/data-node/testString", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "custom" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testString" + } + ] + } + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/MyDirective" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ], + "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/MyDirective": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "MyDirective" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query/customDomainProperties/MyDirective/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#testString": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Query/customDomainProperties/MyDirective/data-node/testString", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "custom" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "testString" + } + ] + } + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/MyDirective" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/arguments.graphql#/declares/shape/Spaceship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.jsonld index 91e5e09640..24ba77b21b 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.jsonld @@ -214,6 +214,102 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ], + "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/deprecated": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "deprecated" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/shape/Query/property/property/name/customDomainProperties/deprecated/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#reason": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/shape/Query/property/property/name/customDomainProperties/deprecated/data-node/reason", + "@type": [ + "http://a.ml/vocabularies/data#Scalar", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/data#value": [ + { + "@value": "no reason" + } + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "reason" + } + ] + } + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/deprecated" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/default.graphql#/declares/scalar/ShipType", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.jsonld index 1fe7898338..3e736faeda 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.jsonld @@ -239,6 +239,93 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ], + "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/One": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "One" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/shape/Query/property/property/name/customDomainProperties/One/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/Two": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "Two" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/shape/Query/property/property/name/customDomainProperties/Two/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/One" + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/Two" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/multiple.graphql#/declares/shape/Spaceship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.jsonld index 89fb96b550..313449b638 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.jsonld @@ -207,6 +207,77 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ], + "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/MyDirective": { + "http://a.ml/vocabularies/core#extensionName": [ + { + "@value": "MyDirective" + } + ], + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/shape/Query/property/property/name/customDomainProperties/MyDirective/data-node", + "@type": [ + "http://a.ml/vocabularies/data#Object", + "http://a.ml/vocabularies/data#Node", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + "http://a.ml/vocabularies/document#customDomainProperties": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/MyDirective" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/directives/simple.graphql#/declares/shape/Spaceship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.jsonld index 68c068f369..187dc2652a 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.jsonld @@ -298,6 +298,100 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Query/property/property/fragment", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Query/property/property/fragment/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "fragment" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Query/property/property/another", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Query/property/property/another/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Another" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Another" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "another" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/fragment-reserved-name/api.graphql#/declares/shape/Another", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.jsonld index 05f3dacb45..b3c8c2eb84 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.graphql#/declares/shape/Query/property/property/myEnum", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.graphql#/declares/shape/Query/property/property/myEnum/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.graphql#/declares/scalar/MyEnum" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "MyEnum" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "myEnum" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-enum-values/api.graphql#/declares/scalar/MyEnum", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.jsonld index 2e36c68c94..a713f85ef7 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.jsonld @@ -176,6 +176,64 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.graphql#/declares/shape/Query/property/property/person", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.graphql#/declares/shape/Query/property/property/person/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/keyword-names/api.graphql#/declares/shape/Person", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.jsonld index 9fce6a76fb..9e3cfadc04 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.jsonld @@ -598,6 +598,333 @@ "@value": "Product" } ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "customers" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/expects/request/parameter/parameter/count", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "count" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/expects/request/parameter/parameter/count/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/returns/response/default/union/default-union/anyOf/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/customers/returns/response/default/union/default-union/anyOf/array/default-array/shape/Customer", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Customer" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Customer" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Customer" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "products" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/expects/request/parameter/parameter/count", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "count" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/expects/request/parameter/parameter/count/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/returns/response/default/union/default-union/anyOf/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Query/supportedOperation/products/returns/response/default/union/default-union/anyOf/array/default-array/shape/Product", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/non-root-optional-array/api.graphql#/declares/shape/Product" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Product" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Product" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] } ] } diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.resolved.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.resolved.jsonld index 88fd6120a6..7ddc9e26c0 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.resolved.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.resolved.jsonld @@ -477,6 +477,158 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(2,10)-(2,16)]" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#synthesized-field": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/source-map/synthesized-field/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "http://www.w3.org/ns/shacl#minCount" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "true" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/property/property/name" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(2,4)-(2,16)]" + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#sources": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/source-map", + "@type": [ + "http://a.ml/vocabularies/document-source-maps#SourceMap" + ], + "http://a.ml/vocabularies/document-source-maps#declared-element": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/source-map/declared-element/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "" + } + ] + } + ], + "http://a.ml/vocabularies/document-source-maps#lexical": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query/source-map/lexical/element_0", + "http://a.ml/vocabularies/document-source-maps#element": [ + { + "@value": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/Query" + } + ], + "http://a.ml/vocabularies/document-source-maps#value": [ + { + "@value": "[(1,0)-(3,1)]" + } + ] + } + ] + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/recursive-inheritance/simple.graphql#/declares/shape/A", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.jsonld index fdfcc938ea..0dc4a1dfdc 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.jsonld @@ -171,6 +171,59 @@ } ], "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.graphql#/declares/shape/Query", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.graphql#/declares/shape/Query/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.graphql#/declares/shape/Query/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 0 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Query" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/non-root-type.graphql#/declares/shape/Starship", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.jsonld index bc0f06b7aa..a5516eb788 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.jsonld @@ -254,6 +254,102 @@ } ] } + ], + "http://a.ml/vocabularies/document#declares": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.graphql#/declares/shape/Starship", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.graphql#/declares/shape/Starship/property/property/id", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.graphql#/declares/shape/Starship/property/property/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "id" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.graphql#/declares/shape/Starship/property/property/name", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/root-type/root-type.graphql#/declares/shape/Starship/property/property/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "name" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Starship" + } + ] + } ] } ] diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.jsonld index ac867f006f..8ba0291bf3 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.jsonld @@ -771,6 +771,317 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allPeople" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Get all the people" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Last parameter" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/returns/response/default/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allPeople/returns/response/default/array/default-array/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allAnimals" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/expects/request/parameter/parameter/animalRequest", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "animalRequest" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/expects/request/parameter/parameter/animalRequest/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/AnimalRequest" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "AnimalRequest" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/returns/response/default/array/default-array", + "@type": [ + "http://a.ml/vocabularies/shapes#ArrayShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#items": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/returns/response/default/array/default-array/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/returns/response/default/array/default-array/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/CustomQuery/supportedOperation/allAnimals/returns/response/default/array/default-array/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Animal" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Animal" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "CustomQuery" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Person", "@type": [ @@ -1130,6 +1441,243 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Subscription", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#property": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Subscription/property/property/newPerson", + "@type": [ + "http://www.w3.org/ns/shacl#PropertyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#range": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Subscription/property/property/newPerson/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ], + "http://www.w3.org/ns/shacl#minCount": [ + { + "@value": 1 + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "newPerson" + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Subscription" + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "createPerson" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/expects/request/parameter/parameter/name", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "name" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/expects/request/parameter/parameter/name/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/expects/request/parameter/parameter/age", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "age" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/expects/request/parameter/parameter/age/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Mutation/supportedOperation/createPerson/returns/response/default/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Mutation" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "type documentation" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/simple/api.graphql#/declares/shape/Animal", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.jsonld b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.jsonld index f41b1eb3e9..4b447bc3e0 100644 --- a/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.jsonld +++ b/amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.jsonld @@ -5166,6 +5166,2882 @@ } ] }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#supportedOperation": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allFilms" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/after", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "after" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/after/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/first", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "first" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/first/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/before", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "before" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/before/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allFilms/returns/response/default/union/default-union/anyOf/shape/FilmsConnection", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/FilmsConnection" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "FilmsConnection" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "FilmsConnection" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "film" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/expects/request/parameter/parameter/filmID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "filmID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/expects/request/parameter/parameter/filmID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/film/returns/response/default/union/default-union/anyOf/shape/Film", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Film" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Film" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Film" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allPeople" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/after", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "after" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/after/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/first", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "first" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/first/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/before", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "before" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/before/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPeople/returns/response/default/union/default-union/anyOf/shape/PeopleConnection", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/PeopleConnection" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "PeopleConnection" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "PeopleConnection" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "person" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/expects/request/parameter/parameter/personID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "personID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/expects/request/parameter/parameter/personID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/person/returns/response/default/union/default-union/anyOf/shape/Person", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Person" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Person" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Person" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allPlanets" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/after", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "after" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/after/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/first", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "first" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/first/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/before", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "before" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/before/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allPlanets/returns/response/default/union/default-union/anyOf/shape/PlanetsConnection", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/PlanetsConnection" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "PlanetsConnection" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "PlanetsConnection" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "planet" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/expects/request/parameter/parameter/planetID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "planetID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/expects/request/parameter/parameter/planetID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/planet/returns/response/default/union/default-union/anyOf/shape/Planet", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Planet" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Planet" + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Planet" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allSpecies" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/after", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "after" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/after/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/first", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "first" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/first/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/before", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "before" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/before/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allSpecies/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/SpeciesConnection" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "SpeciesConnection" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "species" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/expects/request/parameter/parameter/speciesID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "speciesID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/expects/request/parameter/parameter/speciesID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/species/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Species" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Species" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allStarships" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/after", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "after" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/after/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/first", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "first" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/first/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/before", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "before" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/before/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allStarships/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/StarshipsConnection" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "StarshipsConnection" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "starship" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/expects/request/parameter/parameter/starshipID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "starshipID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/expects/request/parameter/parameter/starshipID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/starship/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Starship" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Starship" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "allVehicles" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/after", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "after" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/after/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/first", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "first" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/first/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/before", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "before" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/before/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#string" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/last", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "last" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/expects/request/parameter/parameter/last/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#integer" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/allVehicles/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/VehiclesConnection" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "VehiclesConnection" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "vehicle" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/expects/request/parameter/parameter/vehicleID", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "vehicleID" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": false + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/expects/request/parameter/parameter/vehicleID/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/vehicle/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Vehicle" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Vehicle" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node", + "@type": [ + "http://a.ml/vocabularies/shapes#Operation", + "http://a.ml/vocabularies/core#Operation", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "node" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "Fetches an object given its ID" + } + ], + "http://a.ml/vocabularies/shapes#expects": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/expects/request", + "@type": [ + "http://a.ml/vocabularies/shapes#Request", + "http://a.ml/vocabularies/core#Request", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#parameter": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/expects/request/parameter/parameter/id", + "@type": [ + "http://a.ml/vocabularies/shapes#Parameter", + "http://a.ml/vocabularies/core#Parameter", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "id" + } + ], + "http://a.ml/vocabularies/shapes#binding": [ + { + "@value": "query" + } + ], + "http://a.ml/vocabularies/core#description": [ + { + "@value": "The ID of an object" + } + ], + "http://a.ml/vocabularies/shapes#required": [ + { + "@value": true + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/expects/request/parameter/parameter/id/scalar/default-scalar", + "@type": [ + "http://a.ml/vocabularies/shapes#ScalarShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://www.w3.org/ns/shacl#datatype": [ + { + "@id": "http://www.w3.org/2001/XMLSchema#anyType" + } + ], + "http://a.ml/vocabularies/shapes#format": [ + { + "@value": "ID" + } + ] + } + ] + } + ] + } + ], + "http://a.ml/vocabularies/shapes#returns": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/returns/response", + "@type": [ + "http://a.ml/vocabularies/shapes#Response", + "http://a.ml/vocabularies/core#Response", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#payload": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/returns/response/default", + "@type": [ + "http://a.ml/vocabularies/shapes#Payload", + "http://a.ml/vocabularies/core#Payload", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/core#name": [ + { + "@value": "default" + } + ], + "http://a.ml/vocabularies/shapes#schema": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/returns/response/default/union/default-union", + "@type": [ + "http://a.ml/vocabularies/shapes#UnionShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/shapes#anyOf": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/returns/response/default/union/default-union/anyOf/nil/default-nil", + "@type": [ + "http://a.ml/vocabularies/shapes#NilShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ] + }, + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Root/supportedOperation/node/returns/response/default/union/default-union/anyOf/shape/default-node", + "@type": [ + "http://www.w3.org/ns/shacl#NodeShape", + "http://a.ml/vocabularies/shapes#AnyShape", + "http://www.w3.org/ns/shacl#Shape", + "http://a.ml/vocabularies/shapes#Shape", + "http://a.ml/vocabularies/document#DomainElement" + ], + "http://a.ml/vocabularies/document#link-target": [ + { + "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/Node" + } + ], + "http://a.ml/vocabularies/document#link-label": [ + { + "@value": "Node" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "http://www.w3.org/ns/shacl#name": [ + { + "@value": "Root" + } + ] + }, { "@id": "file://amf-cli/shared/src/test/resources/upanddown/cycle/graphql/swapi/api.graphql#/declares/shape/FilmStarshipsEdge", "@type": [ diff --git a/amf-cli/shared/src/test/resources/upanddown/raml10/inline-prop-inheritance.raml.raml b/amf-cli/shared/src/test/resources/upanddown/raml10/inline-prop-inheritance.raml.raml index bb5b6d418b..e06c716eb4 100644 --- a/amf-cli/shared/src/test/resources/upanddown/raml10/inline-prop-inheritance.raml.raml +++ b/amf-cli/shared/src/test/resources/upanddown/raml10/inline-prop-inheritance.raml.raml @@ -36,4 +36,4 @@ types: a: type: string b: - type: string \ No newline at end of file + type: string diff --git a/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-enum.report b/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-enum.report index 2522bd54c9..6f8b548918 100644 --- a/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-enum.report +++ b/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-enum.report @@ -8,7 +8,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-default-value-type-parameter Message: Value 'C' is not a member of enum 'Alternative' Severity: Violation - Target: file://amf-cli/shared/src/test/resources/validations/graphql/invalid-default-value-enum.graphql#/web-api/endpoint/%2Fquery%2Fname/supportedOperation/query/Query.name/expects/request/parameter/parameter/query/myQueryParam + Target: file://amf-cli/shared/src/test/resources/validations/graphql/invalid-default-value-enum.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/myQueryParam Property: http://a.ml/vocabularies/core#defaultValue Range: [(6,37)-(6,38)] Location: diff --git a/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-parameters.report b/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-parameters.report index c33d23d270..b5a7b43b1d 100644 --- a/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-parameters.report +++ b/amf-cli/shared/src/test/resources/validations/reports/graphql/invalid-default-value-parameters.report @@ -8,7 +8,7 @@ Level: Violation - Constraint: http://a.ml/vocabularies/amf/parser#invalid-default-value-type-parameter Message: Expecting 'Boolean' value but got 'String' value instead Severity: Violation - Target: file://amf-cli/shared/src/test/resources/validations/graphql/invalid-default-value-parameters.graphql#/web-api/endpoint/%2Fquery%2Fname/supportedOperation/query/Query.name/expects/request/parameter/parameter/query/myQueryParam + Target: file://amf-cli/shared/src/test/resources/validations/graphql/invalid-default-value-parameters.graphql#/declares/shape/Query/supportedOperation/name/expects/request/parameter/parameter/myQueryParam Property: http://a.ml/vocabularies/core#defaultValue Range: [(6,31)-(6,40)] Location: diff --git a/amf-cli/shared/src/test/resources/validations/reports/graphql/sudden-eof.report b/amf-cli/shared/src/test/resources/validations/reports/graphql/sudden-eof.report index 9a3bd8a9f5..0dacf8b7c7 100644 --- a/amf-cli/shared/src/test/resources/validations/reports/graphql/sudden-eof.report +++ b/amf-cli/shared/src/test/resources/validations/reports/graphql/sudden-eof.report @@ -1,10 +1,18 @@ ModelId: file://amf-cli/shared/src/test/resources/validations/graphql/sudden-eof.graphql Profile: Conforms: false -Number of results: 3 +Number of results: 5 Level: Violation +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-ast + Message: Missing name for field + Severity: Violation + Target: + Property: + Range: [(6,4)-(5,18)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-ast Message: Missing name for root type field Severity: Violation @@ -13,6 +21,14 @@ Level: Violation Range: [(6,4)-(5,18)] Location: +- Constraint: http://a.ml/vocabularies/amf/parser#invalid-ast + Message: Missing name for field + Severity: Violation + Target: + Property: + Range: [(6,4)-(6,38)] + Location: + - Constraint: http://a.ml/vocabularies/amf/parser#invalid-ast Message: Missing name for root type field Severity: Violation diff --git a/amf-cli/shared/src/test/scala/amf/parser/GraphQLCornerCasesValidationTest.scala b/amf-cli/shared/src/test/scala/amf/parser/GraphQLCornerCasesValidationTest.scala index 63eaf96521..ab64ce9571 100644 --- a/amf-cli/shared/src/test/scala/amf/parser/GraphQLCornerCasesValidationTest.scala +++ b/amf-cli/shared/src/test/scala/amf/parser/GraphQLCornerCasesValidationTest.scala @@ -8,7 +8,6 @@ import scala.concurrent.Future class GraphQLCornerCasesValidationTest extends GraphQLValidationTest { - // todo: fix Query recursion inside not-fixed folder override def basePath: String = "amf-cli/shared/src/test/resources/graphql/corner-cases" fs.syncFile(basePath) diff --git a/amf-graphql/shared/src/main/scala/amf/graphql/client/scala/GraphQLConfiguration.scala b/amf-graphql/shared/src/main/scala/amf/graphql/client/scala/GraphQLConfiguration.scala index 2bde9d7361..a85cf386c3 100644 --- a/amf-graphql/shared/src/main/scala/amf/graphql/client/scala/GraphQLConfiguration.scala +++ b/amf-graphql/shared/src/main/scala/amf/graphql/client/scala/GraphQLConfiguration.scala @@ -10,8 +10,8 @@ import amf.apicontract.client.scala.{AMFConfiguration, APIConfigurationBuilder} import amf.apicontract.internal.transformation.{GraphQLCachePipeline, GraphQLEditingPipeline} import amf.apicontract.internal.validation.model.ApiEffectiveValidations.GraphQLEffectiveValidations import amf.apicontract.internal.validation.model.ApiValidationProfiles.GraphQLValidationProfile -import amf.apicontract.internal.validation.shacl.APIShaclModelValidationPlugin -import amf.core.client.common.validation.{ProfileNames, SeverityLevels} +import amf.apicontract.internal.validation.shacl.graphql.GraphQLShaclModelValidationPlugin +import amf.core.client.common.validation.SeverityLevels import amf.core.internal.remote.Spec import amf.graphql.internal.spec.plugins.parse.GraphQLParsePlugin import amf.graphql.internal.spec.plugins.render.GraphQLRenderPlugin @@ -26,7 +26,7 @@ object GraphQLConfiguration extends APIConfigurationBuilder { GraphQLSyntaxParsePlugin, GraphQLRenderPlugin, AntlrSyntaxRenderPlugin, - APIShaclModelValidationPlugin(ProfileNames.GRAPHQL) + GraphQLShaclModelValidationPlugin() ) ) .withTransformationPipelines( diff --git a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/document/GraphQLBaseDocumentParser.scala b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/document/GraphQLBaseDocumentParser.scala index cc4071cde0..75aa9d3225 100644 --- a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/document/GraphQLBaseDocumentParser.scala +++ b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/document/GraphQLBaseDocumentParser.scala @@ -20,7 +20,7 @@ import amf.graphql.internal.spec.context.GraphQLBaseWebApiContext.RootTypes import amf.graphql.internal.spec.domain._ import amf.graphql.internal.spec.parser.syntax.GraphQLASTParserHelper import amf.graphql.internal.spec.parser.syntax.TokenTypes._ -import amf.shapes.client.scala.model.domain.{ScalarShape, UnionShape} +import amf.shapes.client.scala.model.domain.{NodeShape, ScalarShape, UnionShape} import org.mulesoft.antlrast.ast.{AST, ASTNode, Node, Terminal} case class GraphQLBaseDocumentParser(root: Root)(implicit val ctx: GraphQLBaseWebApiContext) @@ -89,8 +89,13 @@ case class GraphQLBaseDocumentParser(root: Root)(implicit val ctx: GraphQLBaseWe doc set root.location as BaseUnitModel.Location } - private def parseNestedType(objTypeDef: Node): Unit = { + private def makeVirtual(shape: NodeShape): Unit = { + val i = 5 + } + + private def parseNestedType(objTypeDef: Node, isVirtualRoot: Boolean = false): Unit = { val shape = new GraphQLNestedTypeParser(objTypeDef, isInterface = false).parse() + if (isVirtualRoot) makeVirtual(shape) addToDeclarations(shape) } @@ -164,8 +169,11 @@ case class GraphQLBaseDocumentParser(root: Root)(implicit val ctx: GraphQLBaseWe searchName(objTypeDef) match { case Some(typeName) => getRootType(typeName) match { - case Some(rootType) => parseTopLevelType(objTypeDef, rootType) - case None => parseNestedType(objTypeDef) + case Some(rootType) => + parseTopLevelType(objTypeDef, rootType) + // W-14608042: also parse root types as nested types for cyclic references inside root types + parseNestedType(objTypeDef, isVirtualRoot = true) + case None => parseNestedType(objTypeDef) } case _ => parseNestedType(objTypeDef) } diff --git a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLCommonTypeParser.scala b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLCommonTypeParser.scala index 669c99af53..9e7bd14dc4 100644 --- a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLCommonTypeParser.scala +++ b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLCommonTypeParser.scala @@ -19,11 +19,11 @@ trait GraphQLCommonTypeParser extends GraphQLASTParserHelper { collectNodes(objTypeNode, fieldsAstPath).foreach { fieldNode => GraphQLFieldParser(fieldNode, obj).parse { case Left(propertyShape: PropertyShape) => - val properties = obj.properties ++ Seq(propertyShape) + val properties = obj.properties :+ propertyShape obj set properties as NodeShapeModel.Properties case Right(shapeOperation: ShapeOperation) => - val operations = obj.operations ++ Seq(shapeOperation) + val operations = obj.operations :+ shapeOperation obj set operations as NodeShapeModel.Operations } } diff --git a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLOperationFieldParser.scala b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLOperationFieldParser.scala index d51570c0b0..d99eb44114 100644 --- a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLOperationFieldParser.scala +++ b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/domain/GraphQLOperationFieldParser.scala @@ -1,15 +1,24 @@ package amf.graphql.internal.spec.domain +import amf.core.client.scala.model.domain.AmfArray import amf.core.internal.parser.domain.Annotations.{synthesized, virtual} +import amf.core.internal.parser.domain.Fields import amf.graphql.internal.spec.context.GraphQLBaseWebApiContext import amf.graphql.internal.spec.document.GraphQLFieldSetter import amf.graphql.internal.spec.parser.syntax.TokenTypes._ import amf.graphql.internal.spec.parser.syntax.{GraphQLASTParserHelper, NullableShape} import amf.graphqlfederation.internal.spec.domain.{FederationMetadataParser, ShapeFederationMetadataFactory} import amf.shapes.client.scala.model.domain.AnyShape -import amf.shapes.client.scala.model.domain.operations.{ShapeOperation, ShapeParameter, ShapePayload} +import amf.shapes.client.scala.model.domain.operations.{ + ShapeOperation, + ShapeParameter, + ShapePayload, + ShapeRequest, + ShapeResponse +} import amf.shapes.internal.domain.metamodel.operations.{ AbstractPayloadModel, + ShapeOperationModel, ShapeParameterModel, ShapeRequestModel, ShapeResponseModel @@ -31,8 +40,8 @@ case class GraphQLOperationFieldParser(ast: Node)(implicit val ctx: GraphQLBaseW } private def parseArguments(): Unit = { - val request = operation.withRequest() - request.annotations ++= virtual() + val request = new ShapeRequest(Fields(), virtual()).withName("default") + operation set AmfArray(Seq(request), virtual()) as ShapeOperationModel.Request val arguments = collect(ast, Seq(ARGUMENTS_DEFINITION, INPUT_VALUE_DEFINITION)).map { case argument: Node => parseArgument(argument) @@ -70,8 +79,8 @@ case class GraphQLOperationFieldParser(ast: Node)(implicit val ctx: GraphQLBaseW } private def parseRange(): Unit = { - val response = operation.withResponse() - response.annotations ++= virtual() + val response = ShapeResponse(Fields(), virtual()).withName("default") + operation set AmfArray(Seq(response), virtual()) as ShapeOperationModel.Responses val payload = ShapePayload(virtual()).withName("default", synthesized()) payload set parseType(ast) as AbstractPayloadModel.Schema response set payload as ShapeResponseModel.Payload diff --git a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/emitter/document/GraphQLDocumentEmitter.scala b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/emitter/document/GraphQLDocumentEmitter.scala index dd7408b46c..6a3f9faf98 100644 --- a/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/emitter/document/GraphQLDocumentEmitter.scala +++ b/amf-graphql/shared/src/main/scala/amf/graphql/internal/spec/emitter/document/GraphQLDocumentEmitter.scala @@ -62,9 +62,16 @@ class GraphQLDocumentEmitter(document: BaseUnit, builder: StringDocBuilder) exte } } + private def isRootType(shape: AnyShape): Boolean = { + val shapeName = shape.name.value() + val rootNames = Seq(ctx.queryType, ctx.mutationType, ctx.subscriptionType).collect { case Some(root) => root.name } + rootNames.contains(shapeName) + } + private def emitDeclarations(doc: StringDocBuilder): Unit = { document.asInstanceOf[Document].declares.foreach { - case shape: AnyShape => + // W-14608042: avoid rendering root types a second time, already emitted in emitTopLevelTypes() + case shape: AnyShape if !isRootType(shape) => GraphQLTypeEmitter(shape, ctx, doc).emit() case directive: CustomDomainProperty if !isStandardDirective(directive) => GraphQLDirectiveDeclarationEmitter(directive, ctx, doc).emit() diff --git a/amf-graphql/shared/src/main/scala/amf/graphqlfederation/client/scala/GraphQLFederationConfiguration.scala b/amf-graphql/shared/src/main/scala/amf/graphqlfederation/client/scala/GraphQLFederationConfiguration.scala index 184b5e64a0..e92c808fe2 100644 --- a/amf-graphql/shared/src/main/scala/amf/graphqlfederation/client/scala/GraphQLFederationConfiguration.scala +++ b/amf-graphql/shared/src/main/scala/amf/graphqlfederation/client/scala/GraphQLFederationConfiguration.scala @@ -10,7 +10,7 @@ import amf.apicontract.client.scala.{AMFConfiguration, APIConfigurationBuilder} import amf.apicontract.internal.transformation.{GraphQLCachePipeline, GraphQLEditingPipeline} import amf.apicontract.internal.validation.model.ApiEffectiveValidations.GraphQLFederationEffectiveValidations import amf.apicontract.internal.validation.model.ApiValidationProfiles.GraphQLFederationValidationProfile -import amf.apicontract.internal.validation.shacl.APIShaclModelValidationPlugin +import amf.apicontract.internal.validation.shacl.graphql.GraphQLShaclModelValidationPlugin import amf.core.client.common.validation.{ProfileNames, SeverityLevels} import amf.core.internal.remote.Spec import amf.graphqlfederation.internal.plugins.GraphQLFederationParsePlugin @@ -27,7 +27,7 @@ object GraphQLFederationConfiguration extends APIConfigurationBuilder { GraphQLFederationSyntaxParsePlugin, // GraphQLRenderPlugin, AntlrSyntaxRenderPlugin, - APIShaclModelValidationPlugin(ProfileNames.GRAPHQL_FEDERATION) + GraphQLShaclModelValidationPlugin(ProfileNames.GRAPHQL_FEDERATION) ) ) .withTransformationPipelines( diff --git a/amf-shapes/shared/src/main/scala/amf/shapes/internal/validation/shacl/BaseShaclModelValidationPlugin.scala b/amf-shapes/shared/src/main/scala/amf/shapes/internal/validation/shacl/BaseShaclModelValidationPlugin.scala index b4b3aee329..54bb3620a5 100644 --- a/amf-shapes/shared/src/main/scala/amf/shapes/internal/validation/shacl/BaseShaclModelValidationPlugin.scala +++ b/amf-shapes/shared/src/main/scala/amf/shapes/internal/validation/shacl/BaseShaclModelValidationPlugin.scala @@ -23,7 +23,7 @@ trait BaseShaclModelValidationPlugin executionContext: ExecutionContext ): AMFValidationReport = { - val validator = new CustomShaclValidator(functions, profile.messageStyle) + val validator = getValidator val validations = withSemanticExtensionsConstraints(effectiveOrException(options.config, profile), options.config.constraints) @@ -31,6 +31,10 @@ trait BaseShaclModelValidationPlugin adaptToAmfReport(unit, profile, report, validations) } + protected def getValidator: CustomShaclValidator = { + new CustomShaclValidator(functions, profile.messageStyle) + } + protected val functions: CustomShaclFunctions }