Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LD2NL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ambuj Kumar Mondal
LD2NL
Merge requests
!12
An error occurred while fetching the assigned milestone of the selected merge_request.
Saurabh
Code
Änderungen prüfen
Branch auschecken
Herunterladen
Patches
Unformatierter Diff
Menüleiste ausklappen
Closed
Saurabh
saurabh
into
KG2NL_WS20
Overview
0
Commits
6
Pipelines
0
Changes
6
Closed
Saurabh
Ambuj Kumar Mondal
requested to merge
saurabh
into
KG2NL_WS20
Apr 17, 2021
Overview
0
Commits
6
Pipelines
0
Changes
6
Created by: skapoe
0
0
Merge request reports
Compare
KG2NL_WS20
KG2NL_WS20 (base)
and
latest version
latest version
d879bb44
6 commits,
Aug 5, 2023
6 files
+
177
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
RestApi/src/main/java/RestApi/Resource.java
0 → 100644
+
31
−
0
View file @ d879bb44
Edit in single-file editor
Open in Web IDE
package
org.aksw.RestApi
;
import
org.aksw.owl2nl.OWLAxiomConverter
;
import
javax.ws.rs.GET
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.QueryParam
;
import
javax.ws.rs.core.MediaType
;
@Path
(
"/restowl"
)
public
class
Resource
{
private
static
final
OWLAxiomConverter
Aconvertor
=
new
OWLAxiomConverter
();
@Path
(
"/geturl"
)
@GET
@Produces
(
MediaType
.
TEXT_PLAIN
)
public
String
geturl
(
@QueryParam
(
"URL"
)
String
url
)
throws
Exception
{
String
summary
=
null
;
summary
=
Aconvertor
.
Checker
(
url
);
return
summary
;
}
@GET
@Path
(
"/test"
)
@Produces
(
MediaType
.
TEXT_PLAIN
)
public
String
test
()
{
return
"test"
;
}
}
Loading