Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FedX template #49

Open
wants to merge 7 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions examples/experiment-toybench/toyexp-fedx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kobe.semagrow.org/v1alpha1
kind: Experiment
metadata:
name: toyexp-fedx
spec:
benchmark: toybench-simple
federatorName: fedx-toy-simple
federatorTemplateRef: fedx-noask-template
evaluator:
image: semagrow/kobe-sequential-evaluator
timesToRun: 3
dryRun: false
forceNewInit: true
2 changes: 1 addition & 1 deletion examples/federator-fedx/fedx-init-all/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM xqdocker/ubuntu-openjdk:jdk-8
FROM alpine:3.7

RUN mkdir /kobe-temp

Expand Down
2 changes: 1 addition & 1 deletion examples/federator-fedx/fedx-init-all/init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

cd /kobe/input

Expand Down
2 changes: 1 addition & 1 deletion examples/federator-fedx/fedx-init/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM xqdocker/ubuntu-openjdk:jdk-8
FROM alpine:3.7

RUN mkdir /sevod-scraper
RUN mkdir /sevod-scraper/output
Expand Down
7 changes: 3 additions & 4 deletions examples/federator-fedx/fedx-init/init.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash
#!/bin/sh

FNAME="/sevod-scraper/output/"$DATASET_NAME".nt"

touch $FNAME

echo "<http://"$DATASET_NAME"> <http://fluidops.org/config#store> \"SPARQLEndpoint\" ." >> $FNAME
echo "<http://"$DATASET_NAME"> <http://fluidops.org/config#store> \"SPARQLEndpoint\" ." > $FNAME
echo "<http://"$DATASET_NAME"> <http://fluidops.org/config#SPARQLEndpoint> \""$DATASET_ENDPOINT"\" ." >> $FNAME
echo "<http://"$DATASET_NAME"> <http://fluidops.org/config#supportsASKQueries> \"false\" ." >> $FNAME
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: kobe.semagrow.org/v1alpha1
kind: FederatorTemplate
metadata:
name: fedxtemplate
name: fedx-noask-template
spec:
containers:
- name: maincontainer
image: image: semagrow/fedx-server
image: semagrow/fedx-server
ports:
- containerPort: 8080
port: 8080
Expand Down