Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support o2o:listProperty #7

Open
hammar opened this issue Jun 17, 2020 · 2 comments
Open

Support o2o:listProperty #7

hammar opened this issue Jun 17, 2020 · 2 comments
Assignees

Comments

@hammar
Copy link
Collaborator

hammar commented Jun 17, 2020

See https://github.com/RealEstateCore/rec/blob/develop/docs/O2OListProperty.md and RealEstateCore/rec#70

@hammar hammar self-assigned this Jun 17, 2020
@hammar
Copy link
Collaborator Author

hammar commented Jun 17, 2020

Example data for an API to parse/generate.

{
  "@context": {
    "@base": "http://example.com",
    "label": "http://www.w3.org/2000/01/rdf-schema#label",
    "analytics": "https://w3id.org/rec/analytics/",
    "core": "https://w3id.org/rec/core/"
  },
  "@id": "GUID-GOES-HERE",
  "@type": "analytics:DataSeries",
  "label": "This is a data series!",
  "analytics:seriesMembers": {
    "@list": [ 
      {
      "@id": "OBS1",
      "@type": "core:Observation"
      },
      {
      "@id": "OBS2",
      "@type": "core:Observation"
      }
    ]
  },
  "analytics:generatedBy": [
    {
      "@id": "ADDITION_PROCESS",
      "@type": "analytics:AnalysisProcess"
    }
  ]
}

@hammar
Copy link
Collaborator Author

hammar commented Jun 17, 2020

OAS YAML:

    analytics_DataSeries:
      type: object
      required:
      - '@context'
      properties:
        '@id':
          type: string
        '@type':
          type: string
          default: analytics:DataSeries
        label:
          type: string
        analytics:seriesMembers:
          type: object
          required: 
          - '@list'
          properties:
            '@list':
              type: array
              items:
                type: object
                required:
                - '@id'
                properties:
                  '@id':
                    type: string
                  '@type':
                    type: string
                    default: core:Observation
              minItems: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant