Skip to content

AgentShape confusion #731

Description

@dennisvang

The default FDP Resource schema defines an AgentShape:

:AgentShape a sh:NodeShape ;
sh:targetClass foaf:Agent ;
sh:property [
sh:path foaf:name ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
dash:editor dash:TextFieldEditor ;
] .

However, if we define additional AgentShapes such as the following, the FDP gets confused and applies constraints from the default AgentShape:

...

hri:AgentShape a sh:NodeShape;
  rdfs:label "Agent"@en;
  sh:targetClass foaf:Agent;
  sh:property <http://data.health-ri.nl/core/p2/AgentShape#foaf:name> .

<http://data.health-ri.nl/core/p2/AgentShape#foaf:name> sh:path foaf:name;
  sh:name "name"@en;
  sh:description "A name of the agent."@en;
  sh:minCount 1;
  sh:nodeKind sh:Literal;
  dash:viewer dash:LiteralViewer;
  dash:editor dash:TextAreaEditor .

See details here: FAIRDataTeam/FAIRDataPoint-client#201 (comment)

Actually I'm not sure if this is expected behavior, based on this set of schemas, or if it's the FDP getting confused...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions