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

Working configuration basex fix #68

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = LaCASt
url = [email protected]:ag-gipp/LaCASt.git
branch = wikipedia
[submodule "formula-cloud-server"]
path = formula-cloud-server
url = [email protected]:ag-gipp/formula-cloud-server.git
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Task 3 is executed via an external JS widget written by students at the HTW Berl

## Build ##

### Initialize the submodules ###
`git submodule update --init --recursive`

### Do maven build ###
Check-out this project and build it via Maven. In the `/target` directory you will
find the executable server instance `mathpipeline.jar`.

Expand Down
4 changes: 2 additions & 2 deletions application.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server:
# servlet-path: /pipe # custom servlet-path
port: 8080 # default server port, if not set otherwise
port: 8097 # default server port, if not set otherwise

# Math AST Renderer - Main URL
mast.url: https://vmext.wmflabs.org/
Expand All @@ -27,7 +27,7 @@ translator:
jarPath: "LaCASt/bin/latex-to-cas-translator.jar"

basexserver:
harvestPath: "sampleHarvest.xml"
harvestPath: "/home/johannes/Repositories/vmext-demo/my_harvests/"

# -db /opt/zbmath/empty-dump/ -tfidf /opt/zbmath/tfidf/ -index zbmath -esMaxHits 200 -minDF 25 -maxDF 50000
formulacloud:
Expand Down
73 changes: 73 additions & 0 deletions my_harvests/math000000000000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0"?>
<mws:harvest xmlns:mws="http://search.mathweb.org/ns" xmlns:m="http://www.w3.org/1998/Math/MathML">
<mws:expr url="2#math.2.0">
<math xmlns="http://www.w3.org/1998/Math/MathML" id="p1.1.m1.1" class="ltx_Math" alttext="{\displaystyle{\displaystyle E=mc^{2}}}" display="inline">
<semantics id="p1.1.m1.1a">
<mrow id="p1.1.m1.1.6" xref="p1.1.m1.1.6.cmml">
<mi id="p1.1.m1.1.1" xref="p1.1.m1.1.1.cmml">E</mi>
<mo id="p1.1.m1.1.2" xref="p1.1.m1.1.2.cmml">=</mo>
<mrow id="p1.1.m1.1.6.1" xref="p1.1.m1.1.6.1.cmml">
<mi id="p1.1.m1.1.3" xref="p1.1.m1.1.3.cmml">m</mi>
<mo id="p1.1.m1.1.6.1.1" xref="p1.1.m1.1.6.1.1.cmml">⁢</mo>
<msup id="p1.1.m1.1.6.1.2" xref="p1.1.m1.1.6.1.2.cmml">
<mi id="p1.1.m1.1.4" xref="p1.1.m1.1.4.cmml">c</mi>
<mn id="p1.1.m1.1.5.1" xref="p1.1.m1.1.5.1.cmml">2</mn>
</msup>
</mrow>
</mrow>
<annotation-xml encoding="MathML-Content" id="p1.1.m1.1b">
<apply id="p1.1.m1.1.6.cmml" xref="p1.1.m1.1.6">
<eq id="p1.1.m1.1.2.cmml" xref="p1.1.m1.1.2"/>
<ci id="p1.1.m1.1.1.cmml" xref="p1.1.m1.1.1">𝐸</ci>
<apply id="p1.1.m1.1.6.1.cmml" xref="p1.1.m1.1.6.1">
<times id="p1.1.m1.1.6.1.1.cmml" xref="p1.1.m1.1.6.1.1"/>
<ci id="p1.1.m1.1.3.cmml" xref="p1.1.m1.1.3">𝑚</ci>
<apply id="p1.1.m1.1.6.1.2.cmml" xref="p1.1.m1.1.6.1.2">
<csymbol cd="ambiguous" id="p1.1.m1.1.6.1.2.1.cmml" xref="p1.1.m1.1.6.1.2">superscript</csymbol>
<ci id="p1.1.m1.1.4.cmml" xref="p1.1.m1.1.4">𝑐</ci>
<cn type="integer" id="p1.1.m1.1.5.1.cmml" xref="p1.1.m1.1.5.1">2</cn>
</apply>
</apply>
</apply>
</annotation-xml>
<annotation encoding="application/x-tex" id="p1.1.m1.1c">{\displaystyle{\displaystyle E=mc^{2}}}</annotation>
</semantics>
</math>
</mws:expr>

<mws:expr url="3#math.3.0">
<math xmlns="http://www.w3.org/1998/Math/MathML" id="p1.1.m1.1" class="ltx_Math" alttext="{\displaystyle{\displaystyle E=mc^{2}}}" display="inline">
<semantics id="p1.1.m1.1a">
<mrow id="p1.1.m1.1.6" xref="p1.1.m1.1.6.cmml">
<mi id="p1.1.m1.1.1" xref="p1.1.m1.1.1.cmml">E</mi>
<mo id="p1.1.m1.1.2" xref="p1.1.m1.1.2.cmml">=</mo>
<mrow id="p1.1.m1.1.6.1" xref="p1.1.m1.1.6.1.cmml">
<mi id="p1.1.m1.1.3" xref="p1.1.m1.1.3.cmml">m</mi>
<mo id="p1.1.m1.1.6.1.1" xref="p1.1.m1.1.6.1.1.cmml">⁢</mo>
<msup id="p1.1.m1.1.6.1.2" xref="p1.1.m1.1.6.1.2.cmml">
<mi id="p1.1.m1.1.4" xref="p1.1.m1.1.4.cmml">c</mi>
<mn id="p1.1.m1.1.5.1" xref="p1.1.m1.1.5.1.cmml">2</mn>
</msup>
</mrow>
</mrow>
<annotation-xml encoding="MathML-Content" id="p1.1.m1.1b">
<apply id="p1.1.m1.1.6.cmml" xref="p1.1.m1.1.6">
<eq id="p1.1.m1.1.2.cmml" xref="p1.1.m1.1.2"/>
<ci id="p1.1.m1.1.1.cmml" xref="p1.1.m1.1.1">𝐸</ci>
<apply id="p1.1.m1.1.6.1.cmml" xref="p1.1.m1.1.6.1">
<times id="p1.1.m1.1.6.1.1.cmml" xref="p1.1.m1.1.6.1.1"/>
<ci id="p1.1.m1.1.3.cmml" xref="p1.1.m1.1.3">𝑚</ci>
<apply id="p1.1.m1.1.6.1.2.cmml" xref="p1.1.m1.1.6.1.2">
<csymbol cd="ambiguous" id="p1.1.m1.1.6.1.2.1.cmml" xref="p1.1.m1.1.6.1.2">superscript</csymbol>
<ci id="p1.1.m1.1.4.cmml" xref="p1.1.m1.1.4">𝑐</ci>
<cn type="integer" id="p1.1.m1.1.5.1.cmml" xref="p1.1.m1.1.5.1">2</cn>
</apply>
</apply>
</apply>
</annotation-xml>
<annotation encoding="application/x-tex" id="p1.1.m1.1c">{\displaystyle{\displaystyle E=mc^{2}}}</annotation>
</semantics>
</math>
</mws:expr>

</mws:harvest>
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@

<groupId>com.formulasearchengine</groupId>
<artifactId>vmext-demo</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>

<!-- sub modules -->
<modules>
<module>formula-cloud-server</module>
<module>LaCASt</module>
</modules>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
Expand Down
Loading