#define RESOURCE__ZONETRAVELDEPENDENTPRICESPECIFICATION "http://smart-api.io/ontology/1.0/smartapi#ZoneTravelDependentPriceSpecification"
#define RESOURCE__ZONETRAVELDURATIONDEPENDENTPRICESPECIFICATION "http://smart-api.io/ontology/1.0/smartapi#ZoneTravelDurationDependentPriceSpecification"
+#define RESOURCE__COOKIE "http://smart-api.io/ontology/1.0/smartapi#Cookie"
+#define RESOURCE__HTTPSTANDARD "http://smart-api.io/ontology/1.0/smartapi#HttpStandard"
+#define RESOURCE__OAUTH2 "http://smart-api.io/ontology/1.0/smartapi#OAuth2"
+
#endif //__RESOURCE_H__
: Obj(uri)
{
INIT_PROPERTY(mPerson)
+ INIT_PROPERTYLIST(mMethods, PROPERTY__METHOD);
setType(RESOURCE__AUTHORIZATION);
}
Authorization::Authorization(Authorization* l) : Obj(l)
{
SET_PROPERTY_REFERENCE(PROPERTY__PERSON, mPerson, Person)
+ SET_PROPERTYLIST_REFERENCE(PROPERTY__METHOD, mMethods, Variant)
setType(RESOURCE__AUTHORIZATION);
}
void Authorization::parse(Statement* statement)
{
INIT_PARSE(statement)
+ PARSE_PROPERTY(PROPERTY__METHOD, addMethod, Variant)
PARSE_PROPERTY(PROPERTY__PERSON, setPerson, Person)
FINISH_PARSE(Obj)
}
Person* getPerson() { return mPerson; }
void setPerson(Person* p);
+ bool hasMethod() { return (mMethods.length() > 0); }
+ PropertyList<Variant*> getMethods() { return mMethods; }
+ void addMethod(QString method) { addMethod(new Variant(QUrl(method))); }
+ void addMethod(QUrl method) { addMethod(new Variant(method)); }
+ void addMethod(Variant* method) { mMethods.append(method); }
+
private:
+ PropertyList<Variant*> mMethods;
Person* mPerson;
};
INIT_PROPERTY(mSystemOfInterest);
INIT_PROPERTY(mMethod);
- INIT_PROPERTYLIST(mTimeSeries,PROPERTY__TIMESERIES);
+ INIT_PROPERTYLIST(mTimeSeries, PROPERTY__TIMESERIES);
}
Evaluation::Evaluation(Evaluation* o) : ValueObject(o)
rdfs:range smartapi:Authorization ;
rdfs:isDefinedBy smartapi:SecurityOntology .
+smartapi:Cookie a owl:Class ;
+ rdfs:label "Cookie"@en ;
+ rdfs:comment "A security cookie."@en ;
+ rdfs:isDefinedBy smartapi:SecurityOntology ;
+ vs:term_status "testing".
+
+smartapi:OAuth2 a owl:Class ;
+ rdfs:label "OAuth2"@en ;
+ rdfs:comment "Authentication via OAuth2 standard."@en ;
+ rdfs:isDefinedBy smartapi:SecurityOntology ;
+ vs:term_status "testing".
+
+smartapi:HttpStandard a owl:Class ;
+ rdfs:label "HTTP Standard"@en ;
+ rdfs:comment "Authentication via HTTP Standard authentication."@en ;
+ rdfs:isDefinedBy smartapi:SecurityOntology ;
+ vs:term_status "testing".
+
\ No newline at end of file