Skip to content

Commit

Permalink
Add id for molecule div tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Apr 3, 2021
1 parent 3b33dad commit 34c4f39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/pl/edu/uwb/ii/sdfeater/Molecule.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ void printRDFaMolecule() {
}

if (output_str.length() > 0) {
System.out.println(" <div typeof='schema:MolecularEntity' about='http://example.com/molecule#entity" + createID() + "'>");
String mID = createID();
System.out.println(" <div typeof='schema:MolecularEntity' about='http://example.com/molecule#entity" + mID + "' id='entity" + mID + "'>");
System.out.print(output_str);
System.out.println(" </div>");
}
Expand Down Expand Up @@ -471,7 +472,8 @@ void printMicrodataMolecule() {
}

if (output_str.length() > 0) {
System.out.println(" <div itemscope itemtype='http://schema.org/MolecularEntity' itemid='http://example.com/molecule#entity" + createID() + "'>");
String mID = createID();
System.out.println(" <div itemscope itemtype='http://schema.org/MolecularEntity' itemid='http://example.com/molecule#entity" + mID + "' id='entity" + mID + "'>");
System.out.print(output_str);
System.out.println(" </div>");
}
Expand Down

0 comments on commit 34c4f39

Please sign in to comment.