MICO Platform
 All Classes Namespaces Functions Variables Friends
Resource.hpp
1 #ifndef RESOURCE_HPP
2 #define RESOURCE_HPP 1
3 
4 #include<memory>
5 #include "Asset.hpp"
6 #include "anno4cpp.h"
7 
8 
9 namespace mico {
10  namespace persistence {
11  class PersistenceService;
12  namespace model {
13  class URI;
14 
18  class Resource: public std::enable_shared_from_this<Resource>
19  {
20  public:
28 
29  virtual jnipp::Ref<jnipp::eu::mico::platform::anno4j::model::ResourceMMM> getRDFObject() = 0;
30 
34  virtual std::string getSyntacticalType() = 0;
35 
36  virtual void setSyntacticalType(std::string syntacticalType) = 0;
37 
38  virtual std::string getSemanticType() = 0;
39 
40  virtual void setSemanticType(std::string semanticType) = 0;
41 
42  virtual std::shared_ptr<mico::persistence::model::Asset> getAsset() = 0;
43 
44  virtual std::shared_ptr<mico::persistence::model::Asset> getAssetWithLocation(mico::persistence::model::URI) = 0;
45 
46  virtual bool hasAsset() = 0;
47 
48  virtual mico::persistence::PersistenceService& getPersistenceService() = 0;
49  };
50  }
51  }
52 }
53 #endif
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
virtual mico::persistence::model::URI getURI()=0
Return the identifier (a unique URI) for this item.
Main service for accessing the MICO persistence API.
Definition: PersistenceService.hpp:51
Super type of items and parts.
Definition: Resource.hpp:18
virtual std::string getSyntacticalType()=0
the mime type, e.g.
A URI.
Definition: Uri.hpp:22