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 for ArtifactTypes in RMS and ArtifactDefinitions and GetArtifact function in both AADMs and RMs #118

Open
jesus-gorronogoitia opened this issue Sep 27, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jesus-gorronogoitia
Copy link

jesus-gorronogoitia commented Sep 27, 2021

Use cases are requesting support in AADM and RMs for defining artifact definition associated to node types, and node templates, as well as referring them through GetArtifact function: see SODALITE-EU/ide#189

IDE has implemented such support.
RMs serialization in TTL already supports both ArtifactDefinition and GetArtifact function. See example of RM TTL serialization of artifacts:
artifacts.artifacts.rm.ttl.txt

Artifact Types (like data types) are also supported in RMs, and included in above TTL serialization. I have a doubt how to serialize the attribute mime_type of ArtfactType, please clarify.

Similarly for AADM TTL serialization:
artifacts.artifacts.aadm.ttl.txt

For content assistance, the KB Reasoner /types;type=<type_kind> should be extended to support getting existing artifact types (TOSCA normative and module-defined) in the KB.

@jesus-gorronogoitia jesus-gorronogoitia added the enhancement New feature or request label Sep 27, 2021
@jesus-gorronogoitia jesus-gorronogoitia changed the title Support for ArtifactDefinitions and GetArtifact function in both AADMs and RMs Support for ArtifactTypes in RMS and ArtifactDefinitions and GetArtifact function in both AADMs and RMs Sep 27, 2021
@zoevas
Copy link
Collaborator

zoevas commented Oct 25, 2021

Exchange ttl issues

RM

I have modified the resource model you provided:
artifacts.artifacts.rm.ttl.txt

file_ext not being parameter but exchange:file_ext 'txt' ;
mime_type to have as value a string e.g. 'text/plain' and not simple text/plain.

refer to the workspace where the type is saved. e.g. I added the artifact workspace:

:Parameter_25
  rdf:type exchange:Parameter ;
  exchange:name "type" ;
  exchange:value 'artifact/sodalite.artifacts.TextualFile' ;
.

The resource model mapping for artifacts is ready. You can verify it by saving the model and call http://localhost:8080/reasoner-api/v0.6/rm?rmIRI=<>

You can test the type assistance api: http://localhost:8080/reasoner-api/v0.6/types;type=artifact;imports=artifact

AADM

artifacts.artifacts.aadm.ttl (1).txt

I just have added a requirement host in the aadm because an error was thrown. So please modify it so as to have a host for the artifacts_file template.

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

No branches or pull requests

2 participants