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

ITS 2.0 output #5

Merged
merged 5 commits into from Mar 28, 2016
Merged

ITS 2.0 output #5

merged 5 commits into from Mar 28, 2016

Conversation

athalhammer
Copy link
Contributor

Hi,

I was searching for a way to get some text annotated in ITS 2.0 format with DBpedia Spotlight. I'm not sure if this is the location to add this but I got it running with some simple HTML:

<!DOCTYPE html>
<html><head><title>Example</title>
<style>span {background-color:#AAAAAA}</style>
<script src="http://code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="http://athalhammer.github.io/demo/dbpedia-spotlight-0.3.js"></script>
<script>
$(document).ready(function() {
    var select = ".annotate";
    var settings = {
        "endpoint" : "http://spotlight.sztaki.hu:2222/rest",
        "spotter"  : "Default",
        "its"      : "yes"
    };
    $(select).annotate(settings);
    $(select).annotate("best");      
});
</script>
</head>
<body><div class="annotate">Angela Merkel is TIME Person of the Year 2015.</div></body>
</html>

Kind regards,
Andreas

@jodaiber
Copy link
Member

Hi Andreas,

looks good. This does not lead to regressions on the standard format etc? Only additional ITS output?

Jo

@jodaiber jodaiber merged commit 630ab24 into dbpedia-spotlight:gh-pages Mar 28, 2016
@athalhammer
Copy link
Contributor Author

Hi Joachim,

The standard input remains unchanged (without "its" parameter, or set to "no"). Thanks for the merge :)

Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants