Skip to content

Commit 5b8e3e4

Browse files
version 0.1.0
1 parent 61f2b72 commit 5b8e3e4

27 files changed

+97
-97
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ After packaging, OGO can be used in any maven project.
129129
<dependency>
130130
<groupId>org.ogo</groupId>
131131
<artifactId>ogo</artifactId>
132-
<version>1.0.0</version>
132+
<version>0.1.0</version>
133133
<scope>system</scope>
134134
<systemPath><!-- ENTER full path to client jar including jar name --></systemPath>
135135
</dependency>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.ogo</groupId>
55
<artifactId>ogo</artifactId>
6-
<version>1.0.0</version>
6+
<version>0.1.0</version>
77
<!-- Using semantic versioning scheme : http://semver.org/ -->
88
<name>ogo</name>
99
<url>https://github.com/EngineeringSoftware/ogo</url>

src/main/c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.16)
22

3-
project(ogoAgent VERSION 1.0.0 DESCRIPTION "Native agent to query object graphs" LANGUAGES CXX)
3+
project(ogoAgent VERSION 0.1.0 DESCRIPTION "Native agent to query object graphs" LANGUAGES CXX)
44

55
# ------------------------------------------------------------
66
# Dependencies

src/main/java/org/ogo/bridge/AbstractGraphQueryInterface.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ public interface AbstractGraphQueryInterface extends Remote {
99
/**
1010
* @brief Set up the database
1111
*
12-
* @since 1.0.0
12+
* @since 0.1.0
1313
*/
1414
void setup() throws RemoteException;
1515

1616
/**
1717
* @brief Create Graph Nodes
1818
*
19-
* @since 1.0.0
19+
* @since 0.1.0
2020
*/
2121
void createNodes() throws RemoteException;
2222

2323
/**
2424
* @brief Create Relations between nodes
2525
*
26-
* @since 1.0.0
26+
* @since 0.1.0
2727
*/
2828
void createRelations() throws RemoteException;
2929

@@ -35,7 +35,7 @@ public interface AbstractGraphQueryInterface extends Remote {
3535
*
3636
* @return ArrayList<Object> Returns the result of the query
3737
*
38-
* @since 1.0.0
38+
* @since 0.1.0
3939
*/
4040
ArrayList<Object> query(String queryString) throws RemoteException;
4141

@@ -45,29 +45,29 @@ public interface AbstractGraphQueryInterface extends Remote {
4545
* @param path
4646
* Path where the native agent writes the Csv files
4747
*
48-
* @since 1.0.0
48+
* @since 0.1.0
4949
*/
5050
void setPath(String path) throws RemoteException;
5151

5252
/**
5353
* @brief Sets the path from where CSV files generated by native agent are read
5454
*
55-
* @since 1.0.0
55+
* @since 0.1.0
5656
*/
5757
String getPath() throws RemoteException;
5858

5959
/**
6060
* @brief Remove all nodes and relations from database before importing new object graph. (Possibly update the
6161
* database instead ?)
6262
*
63-
* @since 1.0.0
63+
* @since 0.1.0
6464
*/
6565
void clearDatabase() throws RemoteException;
6666

6767
/**
6868
* @brief Shutdown database
6969
*
70-
* @since 1.0.0
70+
* @since 0.1.0
7171
*/
7272
void shutDown() throws RemoteException;
7373
}

src/main/java/org/ogo/client/OGO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static void init() throws IOException, NotBoundException {
8181
* @param fieldDescriptors
8282
* field descriptors of user specified fields
8383
*
84-
* @since 1.0.0
84+
* @since 0.1.0
8585
*/
8686
private static String getDynamicClassName(String className, String[] fieldDescriptors) throws Exception {
8787
MessageDigest md = MessageDigest.getInstance("SHA-256");

src/main/java/org/ogo/server/AbstractGraphQueryEngine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected enum PROPERTY_FILE_INDEX {
4545
* @param propertyType
4646
* Types of all the properties present in the file (returned by the function)
4747
*
48-
* @since 1.0.0
48+
* @since 0.1.0
4949
*/
5050
public void getPropertiesFromFile(String dirName, String fileName, ArrayList<String> propertyName,
5151
ArrayList<String[]> propertyValue, ArrayList<String> propertyType) {
@@ -104,7 +104,7 @@ public void getPropertiesFromFile(String dirName, String fileName, ArrayList<Str
104104
*
105105
* @return String[] Array of tokens extracted from the line
106106
*
107-
* @since 1.0.0
107+
* @since 0.1.0
108108
*/
109109
public String[] getPropertyFileTokens(String line) {
110110

src/main/java/org/ogo/server/Neo4JGraphQueryEngine.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public Neo4JGraphQueryEngine() throws RemoteException {
8181
/**
8282
* @brief Set up the database and register the shutdown hook
8383
*
84-
* @since 1.0.0
84+
* @since 0.1.0
8585
*/
8686
@Override
8787
public void setup() throws RemoteException {
@@ -119,7 +119,7 @@ public void setup() throws RemoteException {
119119
* @param relationName
120120
* name the edges/relations using appropriate field names
121121
*
122-
* @since 1.0.0
122+
* @since 0.1.0
123123
*/
124124
void readRelationFile(File file, ArrayList<Long> refNodes, ArrayList<REFERENCE_KIND> relationType,
125125
ArrayList<String> relationName) {
@@ -167,7 +167,7 @@ void readRelationFile(File file, ArrayList<Long> refNodes, ArrayList<REFERENCE_K
167167
* @brief Import object graph created by native agent into Neo4J Use CREATE instead of MERGE (see
168168
* <a href="https://neo4j.com/blog/bulk-data-import-neo4j-3-0/">...</a>)
169169
*
170-
* @since 1.0.0
170+
* @since 0.1.0
171171
*/
172172
@Override
173173
public void createNodes() throws RemoteException {
@@ -235,7 +235,7 @@ public void createNodes() throws RemoteException {
235235
/**
236236
* @brief Create relations described in [*REFERRER TAG*]_Neo4JRelations.csv
237237
*
238-
* @since 1.0.0
238+
* @since 0.1.0
239239
*/
240240
@Override
241241
public void createRelations() throws RemoteException {
@@ -320,7 +320,7 @@ public void createRelations() throws RemoteException {
320320
*
321321
* @return boolean returns true if queried pattern matches any existing pattern in the database
322322
*
323-
* @since 1.0.0
323+
* @since 0.1.0
324324
*/
325325
@Override
326326
public ArrayList<Object> query(String cQuery) throws RemoteException {
@@ -355,7 +355,7 @@ public ArrayList<Object> query(String cQuery) throws RemoteException {
355355
* @brief Remove all nodes and relations from database before importing new object graph. (Possibly update the
356356
* databse instead ?)
357357
*
358-
* @since 1.0.0
358+
* @since 0.1.0
359359
*/
360360
@Override
361361
public void clearDatabase() throws RemoteException {
@@ -380,7 +380,7 @@ public void clearDatabase() throws RemoteException {
380380
/**
381381
* @brief Shutdown database
382382
*
383-
* @since 1.0.0
383+
* @since 0.1.0
384384
*/
385385
@Override
386386
public void shutDown() throws RemoteException {
@@ -393,7 +393,7 @@ public void shutDown() throws RemoteException {
393393
* @param managementService
394394
* reference to the database management service
395395
*
396-
* @since 1.0.0
396+
* @since 0.1.0
397397
*/
398398
private void registerShutdownHook(final DatabaseManagementService managementService) {
399399
Runtime.getRuntime().addShutdownHook(new Thread(managementService::shutdown));
@@ -405,7 +405,7 @@ private void registerShutdownHook(final DatabaseManagementService managementServ
405405
* @param path
406406
* Path where the native agent writes the Csv files
407407
*
408-
* @since 1.0.0
408+
* @since 0.1.0
409409
*/
410410
@Override
411411
public void setPath(String path) throws RemoteException {
@@ -417,7 +417,7 @@ public void setPath(String path) throws RemoteException {
417417
*
418418
* @return Path where the native agent writes the Csv files
419419
*
420-
* @since 1.0.0
420+
* @since 0.1.0
421421
*/
422422
@Override
423423
public String getPath() throws RemoteException {

src/main/java/org/ogo/util/CastObjectArrayToPrimitive.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class CastObjectArrayToPrimitive {
1313
*
1414
* @return Boolean[] returns the cast Boolean Array
1515
*
16-
* @since 1.0.0
16+
* @since 0.1.0
1717
*/
1818
public static Boolean[] castToBoolean(String[] propertyValue) {
1919
Boolean[] obj2 = new Boolean[propertyValue.length];
@@ -29,7 +29,7 @@ public static Boolean[] castToBoolean(String[] propertyValue) {
2929
*
3030
* @return Byte[] returns the cast Byte Array
3131
*
32-
* @since 1.0.0
32+
* @since 0.1.0
3333
*/
3434
public static Byte[] castToByte(String[] propertyValue) {
3535
Byte[] obj2 = new Byte[propertyValue.length];
@@ -45,7 +45,7 @@ public static Byte[] castToByte(String[] propertyValue) {
4545
*
4646
* @return Short[] returns the cast Short Array
4747
*
48-
* @since 1.0.0
48+
* @since 0.1.0
4949
*/
5050
public static Short[] castToShort(String[] propertyValue) {
5151
Short[] obj2 = new Short[propertyValue.length];
@@ -61,7 +61,7 @@ public static Short[] castToShort(String[] propertyValue) {
6161
*
6262
* @return Integer[] returns the cast Integer Array
6363
*
64-
* @since 1.0.0
64+
* @since 0.1.0
6565
*/
6666
public static Integer[] castToInteger(String[] propertyValue) {
6767
Integer[] obj2 = new Integer[propertyValue.length];
@@ -77,7 +77,7 @@ public static Integer[] castToInteger(String[] propertyValue) {
7777
*
7878
* @return Long[] returns the cast Long Array
7979
*
80-
* @since 1.0.0
80+
* @since 0.1.0
8181
*/
8282
public static Long[] castToLong(String[] propertyValue) {
8383
Long[] obj2 = new Long[propertyValue.length];
@@ -93,7 +93,7 @@ public static Long[] castToLong(String[] propertyValue) {
9393
*
9494
* @return Float[] returns the cast Float Array
9595
*
96-
* @since 1.0.0
96+
* @since 0.1.0
9797
*/
9898
public static Float[] castToFloat(String[] propertyValue) {
9999
Float[] obj2 = new Float[propertyValue.length];
@@ -109,7 +109,7 @@ public static Float[] castToFloat(String[] propertyValue) {
109109
*
110110
* @return Double[] returns the cast Double Array
111111
*
112-
* @since 1.0.0
112+
* @since 0.1.0
113113
*/
114114
public static Double[] castToDouble(String[] propertyValue) {
115115
Double[] obj2 = new Double[propertyValue.length];
@@ -125,7 +125,7 @@ public static Double[] castToDouble(String[] propertyValue) {
125125
*
126126
* @return Character[] returns the cast Character Array
127127
*
128-
* @since 1.0.0
128+
* @since 0.1.0
129129
*/
130130
public static Character[] castToCharacter(String[] propertyValue) {
131131
Character[] obj2 = new Character[propertyValue.length];
@@ -145,7 +145,7 @@ public static Character[] castToCharacter(String[] propertyValue) {
145145
* @param node
146146
* Neo4J node
147147
*
148-
* @since 1.0.0
148+
* @since 0.1.0
149149
*/
150150
public static Node castToNeo4JPropertyType(String propertyName, String[] propertyValue, String propertyType,
151151
Node node) {
@@ -236,7 +236,7 @@ public static Node castToNeo4JPropertyType(String propertyName, String[] propert
236236
*
237237
* @return true if obj belongs to Primitive Type
238238
*
239-
* @since 1.0.0
239+
* @since 0.1.0
240240
*/
241241
public static boolean checkPrimitiveType(Object obj) {
242242
return (obj instanceof Byte || obj instanceof Short || obj instanceof Integer || obj instanceof Long

src/main/java/org/ogo/util/FileHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public abstract class FileHelper {
2020
*
2121
* @return File[] Array of File containing the files of specified extension
2222
*
23-
* @since 1.0.0
23+
* @since 0.1.0
2424
*
25-
* @version 1.0.0
25+
* @version 0.1.0
2626
*/
2727
public static File[] findFilesWithExtension(String dirName, String endsWith) {
2828
File dir = new File(dirName);
@@ -41,9 +41,9 @@ public boolean accept(File dir, String filename) {
4141
*
4242
* @return modified cypher query string
4343
*
44-
* @since 1.0.0
44+
* @since 0.1.0
4545
*
46-
* @version 1.0.0
46+
* @version 0.1.0
4747
*/
4848
public static String subArgWithHashCode(String cQuery, Object... objects) {
4949
for (int j = 1; j <= objects.length; j++) {

src/main/java/org/ogo/util/OGOProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public abstract class OGOProperties {
1010
*
1111
* @return int OGO port number
1212
*
13-
* @since 1.0.0
13+
* @since 0.1.0
1414
*/
1515
public static int getRmiPort() throws IOException {
1616
Properties p = new Properties();
@@ -23,7 +23,7 @@ public static int getRmiPort() throws IOException {
2323
*
2424
* @return boolean inMemory
2525
*
26-
* @since 1.0.0
26+
* @since 0.1.0
2727
*/
2828
public static boolean getInMemory() throws IOException {
2929
Properties p = new Properties();
@@ -36,7 +36,7 @@ public static boolean getInMemory() throws IOException {
3636
*
3737
* @return boolean clearDatabase
3838
*
39-
* @since 1.0.0
39+
* @since 0.1.0
4040
*/
4141
public static boolean getClearDatabase() throws IOException {
4242
Properties p = new Properties();

0 commit comments

Comments
 (0)