https://github.com/dcavar/mongodbjava

Example implementation for connecting MongoDB with Java

https://github.com/dcavar/mongodbjava

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.2%) to scientific vocabulary

Keywords

java mongodb
Last synced: 4 months ago · JSON representation

Repository

Example implementation for connecting MongoDB with Java

Basic Info
  • Host: GitHub
  • Owner: dcavar
  • License: apache-2.0
  • Language: Java
  • Default Branch: master
  • Homepage: http://damir.cavar.me/
  • Size: 7.81 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
java mongodb
Created over 7 years ago · Last pushed over 7 years ago
Metadata Files
Readme License

README.md

mongoDBJava

(C) 2018 by Damir Cavar

This is a simple example of connecting to MongoDB and querying some data from some database.

This is tested with Java 10, the latest MongoDB release, etc.

Set up the database name, collection, and column label, compile and run.

To build:

mvn compile package

To run the jar-file in the target folder with some command line parameters (strings to query in the MongoDB database):

java -jar target/mongoDBQuery-1.0-SNAPSHOT.jar cats dogs

I use this to query word embeddings (word2vec vectors), keywords from knowledge graphs or ontologies, and so on.

The MongoDB library kept on changing in the past. This code should work with the latest release.

Owner

  • Name: Damir Cavar
  • Login: dcavar
  • Kind: user
  • Location: Bloomington, IN
  • Company: Indiana University

GitHub Events

Total
Last Year

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 2
  • Total Committers: 2
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.5
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Damir Cavar d****r@m****m 1
Damir Cavar d****r@g****m 1
Committer Domains (Top 20 + Academic)
me.com: 1

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

pom.xml maven
  • org.mongodb:bson 3.8.0
  • org.mongodb:mongodb-driver 3.6.4
  • junit:junit 4.12 test