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

[#213] Add spin:constraint to the constraint-validation.sms.ttl for i… #254

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion doc/examples/constraint-validation/constraint-validation.sms.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
@prefix sml: <http://topbraid.org/sparqlmotionlib#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .


<http://onto.fel.cvut.cz/ontologies/s-pipes/constraint-validation>
rdf:type owl:Ontology ;
Expand Down Expand Up @@ -110,9 +113,24 @@
:retrieve-person_Return
a sml:ReturnRDF ;
sml:serialization sml:JSONLD ;
rdfs:label "Return data".
rdfs:label "Return data";
.

:retrieve-person
a sm:Function ;
spin:constraint [
rdf:type spl:Argument ;
spl:predicate :firstName ;
spl:optional "false"^^xsd:boolean ;
rdfs:label "first name" ;
rdfs:comment "The first name of the validated person" ;
] ;
spin:constraint [
rdf:type spl:Argument ;
spl:predicate :lastName ;
spl:optional "false"^^xsd:boolean ;
rdfs:label "last name" ;
rdfs:comment "The last name of the validated person" ;
] ;
sm:returnModule :retrieve-person_Return ;
rdfs:subClassOf sm:Functions .
Loading