Open jesus-gorronogoitia opened 3 years ago
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
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.
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 https://github.com/SODALITE-EU/ide/issues/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= should be extended to support getting existing artifact types (TOSCA normative and module-defined) in the KB.