chore: renamed constant

This commit is contained in:
Georgy Litvinov 2021-12-08 12:51:54 +01:00
parent f5bf88532d
commit 56a44ea1fd

View file

@ -42,7 +42,7 @@ public class RDFDocument {
private static final String AUTHOR_GIVEN_NAME = "author given name"; private static final String AUTHOR_GIVEN_NAME = "author given name";
private static final String MODIFICATION_TIME = "modificationTime"; private static final String MODIFICATION_TIME = "modificationTime";
private static final String HTML_EXCERPT_PROPERTY = "htmlExcerpt"; private static final String HTML_EXCERPT_PROPERTY = "htmlExcerpt";
private static final String TOCITEM = "TOCItem"; private static final String TOC_ITEM = "TOCItem";
private static final String TS = "https://litvinovg.pro/text_structures#"; private static final String TS = "https://litvinovg.pro/text_structures#";
private static final String POINTS_TO = TS + "pointsTo"; private static final String POINTS_TO = TS + "pointsTo";
private static final String ITEM_NUMBER = TS + "itemNumber"; private static final String ITEM_NUMBER = TS + "itemNumber";
@ -91,7 +91,7 @@ public class RDFDocument {
this.tocClass = textOntology.createClass(TS + TABLE_OF_CONTENTS); this.tocClass = textOntology.createClass(TS + TABLE_OF_CONTENTS);
this.organizationClass = textOntology.createClass(TS + ORGANIZATION); this.organizationClass = textOntology.createClass(TS + ORGANIZATION);
this.participantClass = textOntology.createClass(TS + PARTICIPANT); this.participantClass = textOntology.createClass(TS + PARTICIPANT);
this.itemClass = textOntology.createClass(TS + TOCITEM); this.itemClass = textOntology.createClass(TS + TOC_ITEM);
formatDocID(fileName); formatDocID(fileName);
this.currentTime = Calendar.getInstance().getTime(); this.currentTime = Calendar.getInstance().getTime();
setPublicationType(config.getRDFType()); setPublicationType(config.getRDFType());
@ -380,7 +380,7 @@ public class RDFDocument {
return true; return true;
} }
private void createTOCItem(DocumentPart docPart) { private void createTOCItem(DocumentPart docPart) {
String tocItemUri = TS + TOCITEM + "/" + docID + docPart.getSafePath(); String tocItemUri = TS + TOC_ITEM + "/" + docID + docPart.getSafePath();
Resource tocItem = m.createIndividual(tocItemUri,itemClass); Resource tocItem = m.createIndividual(tocItemUri,itemClass);
tocItem.addProperty( RDFS.label, docPart.getName()); tocItem.addProperty( RDFS.label, docPart.getName());
Property pointsTo = m.createProperty(POINTS_TO); Property pointsTo = m.createProperty(POINTS_TO);