예제 #1
0
 /**
  * Instantiates a new concept.
  *
  * @param accountId the account id
  * @param graphName the graph name
  * @param concept the concept
  */
 public Concept(final String accountId, final String graphName, final String concept) {
   Validate.notNull(concept, "concept cannot be null");
   setName(concept);
   setId(new Graph(accountId, graphName).getId() + "/concepts/" + concept);
 }
예제 #2
0
 /**
  * Instantiates a new concept.
  *
  * @param graph the graph
  * @param concept the concept
  */
 public Concept(final Graph graph, final String concept) {
   Validate.notNull(graph, "graph cannot be null");
   Validate.notNull(graph.getId(), "graph.id cannot be null");
   setName(concept);
   setId(graph.getId() + "/concepts/" + concept);
 }