diff --git a/src/main/java/w2phtml/rdf/RDFDocument.java b/src/main/java/w2phtml/rdf/RDFDocument.java index da17130..774a42f 100644 --- a/src/main/java/w2phtml/rdf/RDFDocument.java +++ b/src/main/java/w2phtml/rdf/RDFDocument.java @@ -42,7 +42,7 @@ public class RDFDocument { private static final String AUTHOR_GIVEN_NAME = "author given name"; private static final String MODIFICATION_TIME = "modificationTime"; 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 POINTS_TO = TS + "pointsTo"; private static final String ITEM_NUMBER = TS + "itemNumber"; @@ -91,7 +91,7 @@ public class RDFDocument { this.tocClass = textOntology.createClass(TS + TABLE_OF_CONTENTS); this.organizationClass = textOntology.createClass(TS + ORGANIZATION); this.participantClass = textOntology.createClass(TS + PARTICIPANT); - this.itemClass = textOntology.createClass(TS + TOCITEM); + this.itemClass = textOntology.createClass(TS + TOC_ITEM); formatDocID(fileName); this.currentTime = Calendar.getInstance().getTime(); setPublicationType(config.getRDFType()); @@ -380,7 +380,7 @@ public class RDFDocument { return true; } 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); tocItem.addProperty( RDFS.label, docPart.getName()); Property pointsTo = m.createProperty(POINTS_TO);