Re: Outreachy 2020-2021 - Neo4j - Weekly reports.

2021-01-09 Thread gabriela ortiz
Hi all.

I wanted to inform the tasks I worked on this week: Jan 01 - Jan 08

- Develop a test for XSD validations.
- Develop methods: exists and delete in the datastore.
- Switch to Neo4j Enterprise from Neo4j Community in the container of the
tests.
- Add comments and javadocs
- Change the UNIQUE indexes for NODE KEY indexes (present in the Neo4j
Enterprise version)

My code is here: https://github.com/mgov88/gora/tree/GORA-663

Regardss
Gaby

El jue, 7 de ene. de 2021 a la(s) 13:28, gabriela ortiz (
arqgabyor...@gmail.com) escribió:

> Hi John
>
> Thanks for your comments.
>
>
> El mié, 6 de ene. de 2021 a la(s) 16:10, John Mora (jhnmora...@gmail.com)
> escribió:
>
>> Hi
>>
>> Thanks for your report.
>>
>> Some comments:
>>
>> You are creating a UNIQUE index instead of the NODE KEY you mentioned on
>> your design document. why?
>>
>>
>> https://github.com/mgov88/gora/blob/GORA-663/gora-neo4j/src/main/java/org/apache/gora/neo4j/store/Neo4jStore.java#L141
>>
>>
> I found this limitation in the Neo4j community version: "Node key
> constraints, node property existence constraints and relationship property
> existence constraints are only available in Neo4j Enterprise Edition".
>
> And, the UNIQUE indexes work in the community version. Should I seek a
> trial version of the enterprise version or work only with the UNIQUE
> indexes of the community version?
>
>
>
>> Also, can you write the CREATE CONSTRAINT query with Cypher-DSL?
>>
>>
>  I could not find a API for constraints creation in Cypher DSL. The create
> statements that I found are only for nodes.
>
> Please add javadoc documentation and comments on these classes:
>>
>>
>> https://github.com/mgov88/gora/blob/GORA-663/gora-neo4j/src/main/java/org/apache/gora/neo4j/store/Neo4jConstants.java
>>
>> https://github.com/mgov88/gora/blob/GORA-663/gora-neo4j/src/main/java/org/apache/gora/neo4j/store/Neo4jParameters.java
>>
>> I will add the documentation
>
>
>> Please add a test for the XSD Validation
>>
>>
>> https://github.com/mgov88/gora/blob/GORA-663/gora-neo4j/src/main/resources/gora-neo4j.xsd
>>
>> I will add a test for this.
>
>
>> Cheers,
>> John
>>
>> El dom, 3 ene 2021 a las 23:12, gabriela ortiz ()
>> escribió:
>>
>>> Hi
>>>
>>> I wanted to inform the tasks I worked on this week: Dec 26 - Dec 31
>>>
>>> * Develop the Datastore methods: getSchemaName, createSchema, deleteSchema,
>>> schemaExists
>>> * Enable tests in Neo4jStoreTest : testCreateSchema ,  testSchemaExists
>>> * Enhance the implementation of the connection to the backend.
>>> * Write a blog about my project.
>>>
>>> You can find my code in my branch:
>>>
>>> https://github.com/mgov88/gora/tree/GORA-663
>>>
>>> Best Regards,
>>> Gaby
>>>
>>> El mié, 30 de dic. de 2020 a la(s) 13:28, John Mora (
>>> jhnmora...@gmail.com) escribió:
>>>
 Hi

 Thanks for your report.

 The Utils package is specific for each datastore; it is not mandatory.
 You can move some code there to improve the readability of the core classes
 of the datastore but it is up to you.

 I could not find your last changes in your branch in github, please
 make sure to push the commits, so I can review the code.

 Cheers,
 John


 El mar, 29 dic 2020 a las 1:03, gabriela ortiz ()
 escribió:

> Hi
>
> I wanted to inform the tasks I worked on this week: Dec 19 - Dec 25
>
> * I developed a GoraTestDriver for Neo4j using GenericContainer from
> the Test Containers library
> * I developed the initialize method from Neo4jStore to establish
> connection to the backend (Neo4j)
> * I developed a XSD validation file for the XML mapping
>
> I have a question, I realized that some Datastores have 'utils'
> packages in the code, are they obligatory? What kind of code should go in
> them?
>
> Best Regards,
> Gaby
>
>
>
> El lun, 21 de dic. de 2020 a la(s) 15:45, gabriela ortiz (
> arqgabyor...@gmail.com) escribió:
>
>> Hi John
>>
>> El sáb, 19 de dic. de 2020 a la(s) 17:13, John Mora (
>> jhnmora...@gmail.com) escribió:
>>
>>> Hi Gaby
>>>
>>> Thanks for your report and your hard work!
>>>
>>> I left some comments on your design document please give them a look.
>>>
>>>
>> Thanks you for your comments,
>>
>>
>>> Some comments about your code:
>>>
>>> IMHO, the attributes unique, exists and index should be optional
>>> (default: false) [0].
>>>
>>
>> I agree I will change that
>>
>>
>>> The KeyClassCanonicalName and PersistentClassCanonicalName should
>>> be read from the datastore not hard coded [1]
>>>
>>
>> I put that hard coded because I had an error because the Datastore
>> methods are not yet implemented, but I will change that.
>>
>>
>>> I think this class [2] should be deleted, there are proper tests for
>>> this in the DataStoreTestBase 

Re: Your project's website

2021-01-09 Thread Kevin Ratnasekera
Hi Andrew,

Happy new year to you too. Apologize for the late checking on this. I will
go through this, and get back to you.

Regards
Kevin

On Sat, Jan 9, 2021 at 8:03 PM Andrew Wetmore  wrote:

> Hi, and happy New Year.
>
> Have you been able to make any progress in migrating your project website
> off the Apache CMS and onto some other technology? Infra has suggestions if
> you are stuck.
>
> Andrew
>
> On Mon, Aug 17, 2020 at 10:23 AM Andrew Wetmore 
> wrote:
>
> > Hi, all.
> >
> > Any progress on preparing to migrate the site off the CMS? You can open a
> > Jira ticket at any time for INFRA to track the work we will need to do,
> and
> > you will also need to hold a PMC vote to approve the move and allow Infra
> > to close down your presence on the CMS once the move is complete.
> >
> > Thanks!
> >
> > Andrew
> >
> > On Wed, Aug 5, 2020 at 9:16 AM Andrew Wetmore 
> wrote:
> >
> >> Hi:
> >>
> >> I am part of the Infrastructure team, and am writing to ask whether your
> >> project is still using the Apache CMS for your project website. As you
> >> know, the CMS is reaching end-of-life, and we need projects to move
> their
> >> websites onto a different option within the next few weeks.
> >>
> >> There are several alternatives available, including those listed on this
> >> page [1] on managing project websites. Infra is assembling a Wiki page
> [2]
> >> on migrating a website from the CMS, and is looking forward to helping
> >> projects with this transition.
> >>
> >> Please let me know whether your site is still on the Apache CMS and, if
> >> so, who will be the project point-of-contact with Infra for the
> migration.
> >>
> >> Thank you!
> >>
> >>
> >>
> >>
> >> [1] https://infra.apache.org/project-site.html
> >>
> >> [2]
> >>
> https://cwiki.apache.org/confluence/display/INFRA/Migrate+your+project+website+from+the+Apache+CMS
> >>
> >>
> >>
> >> --
> >> Andrew Wetmore
> >> Technical Writer-Editor
> >> Infra
> >> *Apache Software Foundation*
> >> andr...@apache.org
> >>
> >>
> >> <
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
> Virus-free.
> >> www.avast.com
> >> <
> https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail
> >
> >>
> <#m_6950646739042879479_m_4824096393059235209_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >>
> >
> >
> > --
> > Andrew Wetmore
> > Technical Writer-Editor
> > Infra
> > *Apache Software Foundation*
> > andr...@apache.org
> >
>
>
> --
> Andrew Wetmore
> Technical Writer-Editor
> Infra
> *Apache Software Foundation*
> andr...@apache.org
>


Re: Your project's website

2021-01-09 Thread Andrew Wetmore
Hi, and happy New Year.

Have you been able to make any progress in migrating your project website
off the Apache CMS and onto some other technology? Infra has suggestions if
you are stuck.

Andrew

On Mon, Aug 17, 2020 at 10:23 AM Andrew Wetmore  wrote:

> Hi, all.
>
> Any progress on preparing to migrate the site off the CMS? You can open a
> Jira ticket at any time for INFRA to track the work we will need to do, and
> you will also need to hold a PMC vote to approve the move and allow Infra
> to close down your presence on the CMS once the move is complete.
>
> Thanks!
>
> Andrew
>
> On Wed, Aug 5, 2020 at 9:16 AM Andrew Wetmore  wrote:
>
>> Hi:
>>
>> I am part of the Infrastructure team, and am writing to ask whether your
>> project is still using the Apache CMS for your project website. As you
>> know, the CMS is reaching end-of-life, and we need projects to move their
>> websites onto a different option within the next few weeks.
>>
>> There are several alternatives available, including those listed on this
>> page [1] on managing project websites. Infra is assembling a Wiki page [2]
>> on migrating a website from the CMS, and is looking forward to helping
>> projects with this transition.
>>
>> Please let me know whether your site is still on the Apache CMS and, if
>> so, who will be the project point-of-contact with Infra for the migration.
>>
>> Thank you!
>>
>>
>>
>>
>> [1] https://infra.apache.org/project-site.html
>>
>> [2]
>> https://cwiki.apache.org/confluence/display/INFRA/Migrate+your+project+website+from+the+Apache+CMS
>>
>>
>>
>> --
>> Andrew Wetmore
>> Technical Writer-Editor
>> Infra
>> *Apache Software Foundation*
>> andr...@apache.org
>>
>>
>> 
>>  Virus-free.
>> www.avast.com
>> 
>> <#m_6950646739042879479_m_4824096393059235209_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>
>
> --
> Andrew Wetmore
> Technical Writer-Editor
> Infra
> *Apache Software Foundation*
> andr...@apache.org
>


-- 
Andrew Wetmore
Technical Writer-Editor
Infra
*Apache Software Foundation*
andr...@apache.org


Add datastore for Elasticsearch. Outreachy Week 6 Report

2021-01-09 Thread Maria Podorvanova
Hi,

Report #6
Period: January 3 - January 9
Activities:
- Added XSD validation file for the XML mapping [1]
- Fixed XSD validation [2]

   1. Relocated gora-elasticsearch.xsd file to main resources
   2. Covered XSD validation with test
   3. Added gora-elasticsearch-mapping-invalid.xml file for test

- Set up Elasticsearch container's authentication parameters [3]
- Implemented exists method [4]
- Added comments for the connection parameters [5]

Here are links to the commits:
[1]
https://github.com/apache/gora/commit/5020efc9aaf80c7e585b446bec3be392969093ba

[2]
https://github.com/apache/gora/commit/05e8ed5ebddfbbddb175a683d0242a76896e6bb5

[3]
https://github.com/apache/gora/commit/66c9d80ee255df5c3b397aa5b0e4e1256598ebb5

[4]
https://github.com/apache/gora/commit/2f7d7218d7c120ad4694916186debdab3beac4f7

[5]
https://github.com/apache/gora/commit/e2d0aeba8db9fd65e6e127d08196e2facac52c05


Regards,
Maria