https://github.com/dbpedia/databus-derive
Science Score: 26.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
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.7%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: dbpedia
- License: agpl-3.0
- Language: Scala
- Default Branch: master
- Size: 18.2 MB
Statistics
- Stars: 0
- Watchers: 18
- Forks: 1
- Open Issues: 4
- Releases: 1
Metadata Files
README.md
Databus-derive-maven-plugin
Extension to the databus-maven-plugin,
used to download and derive new datasets already released on the databus.
mvn databus-derive:clone downloads all data into the build directory target/databus/derive/downloads, mvn clean deletes the downloaded data again.
Later the plugin will feature better data housekeeping option, such as persisting some downloads in ${user.home}/.m2/databus and caching often used conversions.
working beta * we are using it to derive the monthly DBpedia releases from the MARVIN pre-releases (parse and remove syntax errors) * Code overlaps with the Databus Client. Merging and refactoring is required.
Current caveats:
* putting a version that does not exist into <version> will result in a java.util.NoSuchElementException: QueryIterPlainWrapper
* using .bz2 other data is simply copied
* Per default parsing data and cloning (e.g. create new versions for the databus-maven-plugin) are deactivated.
You can turn them on with -DskipParsing=false -DskipCloning=false, but beware the plugin needs three times the space of the data (easier to debug).
Setup
Add the snapshot plugin repository, not required if you already use the databus-maven-plugin
xml
<pluginRepositories>
<pluginRepository>
<id>archiva.internal</id>
<name>Internal Release Repository</name>
<url>http://databus.dbpedia.org:8081/repository/internal</url>
</pluginRepository>
<pluginRepository>
<id>archiva.snapshots</id>
<name>Internal Snapshot Repository</name>
<url>http://databus.dbpedia.org:8081/repository/snapshots</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
Add the following plugin entry to the BaseBuild(<build>) element in your maven pom.
xml
<build>
...
<plugins>
<plugin>
<groupId>org.dbpedia.databus</groupId>
<artifactId>databus-derive-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>clone</goal>
</goals>
</execution>
</executions>
<configuration>
<versions>
<version>https://databus.dbpedia.org/dbpedia/enrichment/mappingbased-literals/2019.03.01</version>
</versions>
<skipParsing>true</skipParsing>
<skipCloning>true</skipCloning>
</configuration>
</plugin>
</plugins>
</build>
Note that you can also use a variable for configuration. This configuration downloads the whole DBpedia/mappings group.
```xml
Maven manual install
git clone https://github.com/dbpedia/databus-derive.git
cd databus-derive
mvn clean install
Usage
Execute the plugin.
```
normal
export MAVEN_OPTS="-Xmx24000m"
for 64Cores ~ 64GB to parse 5GB bz2
export MAVEN_OPTS="-Xmx64000m"
mvn databus-derive:clone ```
Standalone Execution
It is also possible to just create cleaned triples and pareslogs.
mvn scala:run -Dlauncher=flatRdfParser -DaddArgs="$flat-rdf-in|-o|$flat-rdf-out|-r|$report-out"
or
./flatRdfParser <flat-rdf-in> <flat-rdf-out> <report-out>
for help add --help
Example
git clone https://github.com/dbpedia/databus-derive.git
cd databus-derive/ && mvn clean install
wget http://dbpedia-mappings.tib.eu/release/mappings/mappingbased-literals/2019.10.01/mappingbased-literals_lang\=de.ttl.bz2
./flatRdfParser mappingbased-literals_lang=de.ttl.bz2 --discard-warnings > mappingbased-literals_lang=de_cleaned.ttl
Owner
- Name: DBpedia
- Login: dbpedia
- Kind: organization
- Email: dbpedia-discussion@lists.sourceforge.net
- Website: http://dbpedia.org
- Repositories: 119
- Profile: https://github.com/dbpedia
GitHub Events
Total
- Issues event: 1
- Push event: 6
Last Year
- Issues event: 1
- Push event: 6
Dependencies
- org.apache.maven.plugin-tools:maven-plugin-annotations 3.6.0 provided
- co.fs2:fs2-io_2.11 1.0.0
- com.github.pathikrit:better-files_2.11 3.8.0
- com.github.scopt:scopt_2.11 3.7.1
- com.typesafe.scala-logging:scala-logging_2.11 3.9.2
- net.sansa-stack:sansa-rdf-spark_2.11 0.6.0
- org.apache.commons:commons-compress 1.18
- org.apache.jena:jena-arq 3.13.1
- org.apache.jena:jena-core 3.13.1
- org.apache.maven:maven-plugin-api 2.0
- org.apache.maven:maven-project 2.2.0
- org.apache.spark:spark-streaming_2.11 2.4.0
- org.scala-lang:scala-library 2.11.8
- org.scala-lang:scala-reflect 2.11.8
- org.scalaj:scalaj-http_2.11 2.4.2
- org.slf4j:slf4j-simple 1.7.16
- org.scalatest:scalatest_2.11 3.0.8 test
- actions/checkout v2 composite
- actions/setup-java v2 composite