- Notifications
You must be signed in to change notification settings - Fork143
The low-code Knowledge Graph application platform. Apache license.
License
AtomGraph/LinkedDataHub
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
LinkedDataHub (LDH) is an open source software you can use to manage data, create visualizations and build apps on RDF Knowledge Graphs.
Welcome to LinkedDataHub. We started the project with the intention to use it for Linked Data publishing, but gradually realized that we've built a multi-purpose data-driven platform.
We are building LinkedDataHub for:
- domain experts who work with RDF data and need an accessible low-code publishing, exploration and management tool
- developers who are looking for a declarative full stack framework for web application and API development
- data engineers who need an open-source RDF platform that can be customized for a variety of use cases
What makes LinkedDataHub unique is its completelydata-driven architecture: applications and documents are defined as data, managed using a single generic HTTP API and presented using declarative technologies. The default application structure and user interface are provided, but they can be completely overridden and customized. Unless a custom server-side processing is required, no imperative code such as Java or JavaScript needs to be involved at all.
Follow theGet started guide to build your first application on LinkedDataHub. The setup and basic configuration sections are provided below and should get you running.
Click to expand
- Install Docker
- Install Docker Compose, if it is not already included in the Docker installation
- Fork this repository and clone the fork into a folder
- In the folder, create an
.envfile and fill out the missing values (you can use.env_sampleas a template). For example:
COMPOSE_CONVERT_WINDOWS_PATHS=1COMPOSE_PROJECT_NAME=linkeddatahubPROTOCOL=httpsPROXY_HTTP_PORT=81PROXY_HTTPS_PORT=4443HOST=localhostABS_PATH=/OWNER_MBOX=john@doe.comOWNER_GIVEN_NAME=JohnOWNER_FAMILY_NAME=DoeOWNER_ORG_UNIT=My unitOWNER_ORGANIZATION=My orgOWNER_LOCALITY=CopenhagenOWNER_STATE_OR_PROVINCE=DenmarkOWNER_COUNTRY_NAME=DKOWNER_KEY_PASSWORD=changeit- Run this from command line:
docker-compose up- LinkedDataHub will start and create the following sub-folders:
certswhere your WebID certificates are storeddatawhere the triplestore(s) will persist RDF datauploadswhere LDH stores content-hashed file uploads
- Install
certs/owner.p12into a web browser of your choice (password is theOWNER_KEY_PASSWORDvalue)- Google Chrome:
Settings > Advanced > Manage Certificates > Import... - Mozilla Firefox:
Options > Privacy > Security > View Certificates... > Import... - Apple Safari: The file is installed directly into the operating system. Open the file and import it using theKeychain Access tool.
- Microsoft Edge: Does not support certificate management, you need to install the file into Windows.Read more here.
- Google Chrome:
- Openhttps://localhost:4443/ in that web browser
After a successful startup, the last line of the Docker log should read:
linkeddatahub_1 | 02-Feb-2020 02:02:20.200 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 3420 ms- You will likely get a browser warning such as
Your connection is not privatein Chrome orWarning: Potential Security Risk Aheadin Firefox due to the self-signed server certificate. Ignore it: clickAdvancedandProceedorAccept the riskto proceed.- If this option does not appear in Chrome (as observed on some MacOS), you can open
chrome://flags/#allow-insecure-localhost, switchAllow invalid certificates for resources loaded from localhosttoEnabledand restart Chrome
- If this option does not appear in Chrome (as observed on some MacOS), you can open
.env_sampleand.envfiles might be invisible in MacOS Finder which hides filenames starting with a dot. You should be able tocreate it using Terminal however.- On Linux your user may need to be a member of the
dockergroup. Add it using
sudo usermod -aG docker ${USER}and re-login with your user. An alternative, but not recommended, is to run
sudo docker-compose upClick to expand
Besides owner WebID configuration, the most common case is changing the base URI from the defaulthttps://localhost:4443/ to your own.
Lets usehttps://ec2-54-235-229-141.compute-1.amazonaws.com/linkeddatahub/ as an example. We need to split the URI into components and set them in the.env file using the following parameters:
PROTOCOL=httpsHTTP_PORT=80HTTPS_PORT=443HOST=ec2-54-235-229-141.compute-1.amazonaws.comABS_PATH=/linkeddatahub/ABS_PATH is required, even if it's just/.
Dataspaces are configured inconfig/system.trig. Their base URIs need to be relative to the base URI configured in the.env file.
Reusing thehttps://ec2-54-235-229-141.compute-1.amazonaws.com/linkeddatahub/ as the new base URI, the easiest way is to simple replace the defaulthttps://localhost:4443/ value with it. It can be done using the following shell command:
sed -i 's/https:\/\/localhost:4443\//https:\/\/ec2-54-235-229-141.compute-1.amazonaws.com\/linkeddatahub\//g' config/system.trigNote thatsed requires to escape forward slashes/ with backslashes\.
If you need to start fresh and wipe the existing setup (e.g. after configuring a new base URI), you can do that using
sudo rm -rf certs data && docker-compose down -vLinkedDataHub CLI wraps the HTTP API into a set of shell scripts with convenient parameters. The scripts can be used for testing, automation, scheduled execution and such. It is usually much quicker to perform actions using CLI rather than the user interface, as well as easier to reproduce.
The scripts can be found in thescripts subfolder.
An environment variableJENA_HOME is used by all the command line tools to configure the class path automatically for you. You can set this up as follows:
On Linux / Mac
export JENA_HOME=the directory you downloaded Jena toexport PATH="$PATH:$JENA_HOME/bin"Get thesource codeSCRIPT_ROOT environmental variable to thescripts subfolder of your LinkedDataHub fork or clone. For example:
export SCRIPT_ROOT="/c/Users/namedgraph/WebRoot/AtomGraph/LinkedDataHub/scripts"- contribute a new LDH application or modifyone of ours
- work ongood first issues
- work on the features in ourRoadmap
- join ourcommunity
LinkedDataHub includes an HTTPtest suite. The server implementation is also covered by theProcessor test suite.
Pleasereport issues if you've encountered a bug or have a feature request.
Commercial consulting, development, and support are available fromAtomGraph.
- linkeddatahub@groups.io (mailing list)
- @atomgraphhq on Twitter
- AtomGraph on LinkedIn
- W3CDeclarative Linked Data Apps Community Group
About
The low-code Knowledge Graph application platform. Apache license.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.
