Skip to content
Open
3 changes: 2 additions & 1 deletion .github/workflows/snapshot_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ jobs:
run: |
echo "Deploying to https://maven.pkg.github.com/${REPO} with revision ${REVISION}"
mvn deploy -DskipTests \
-Dgithub.repo.url="https://maven.pkg.github.com/${REPO}"
-Dgithub.repo.url="https://maven.pkg.github.com/${REPO}" \
-DskipNexusStagingDeployMojo=true
30 changes: 24 additions & 6 deletions core/src/main/java/org/dbpedia/extraction/nif/Link.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,29 @@ public class Link implements Comparable<Link> {
private boolean topicLink = false;
private boolean topicPartLink = false;
private boolean surfaceFormLink = false;

private boolean citation = false;
private String citationId = "";

public Link() {


}

public boolean isCitation() {
return citation;
}

public void setCitation(boolean citation) {
this.citation = citation;
}


public String getCitationId() {
return citationId;
}

public void setCitationId(String citationId) {
this.citationId = citationId;
}

public boolean isSurfaceFormLink() {
return surfaceFormLink;
}
Expand Down Expand Up @@ -91,12 +109,12 @@ public void setExternal(boolean external) {
@Override
public int compareTo(Link link) {
// TODO Auto-generated method stub
if(this.wordStart==link.getWordStart())
if (this.wordStart == link.getWordStart())
return 0;
else if(this.wordStart<link.getWordStart())
else if (this.wordStart < link.getWordStart())
return -1;
else
return 1;
}

}
Loading
Loading