@@ -530,19 +530,21 @@ public void serialize(Organization organization) {
530
530
StringBuffer result = new StringBuffer (19000 );
531
531
writeDBPData (DBP .fullPrefixed (organization .name ), RDF .type , DBPOWL .Organisation );
532
532
writeDBPData (DBP .fullPrefixed (organization .name ), FOAF .Name , createLiteral (organization .name ));
533
- writeDBPData (DBP .fullPrefixed (organization .name ), SNVOC .id , createLiteral (Long .toString (organization .id )));
534
533
createTripleSPO (result , DBP .fullPrefixed (organization .name ),
535
534
SNVOC .locatedIn , DBP .fullPrefixed (locationDic .getLocationName (organization .location )));
535
+ createTripleSPO (result , DBP .fullPrefixed (organization .name ),
536
+ SNVOC .id , createLiteral (Long .toString (organization .id )));
536
537
toWriter (result .toString ());
537
538
}
538
539
539
540
@ Override
540
541
public void serialize (Tag tag ) {
541
542
StringBuffer result = new StringBuffer (350 );
542
543
writeDBPData (DBP .fullPrefixed (tag .name ), FOAF .Name , createLiteral (tag .name ));
543
- writeDBPData (DBP .fullPrefixed (tag .name ), SNVOC .id , createLiteral (Long .toString (tag .id )));
544
544
Integer tagClass = tag .tagClass ;
545
545
writeDBPData (DBP .fullPrefixed (tag .name ), RDF .type , DBPOWL .prefixed (tagDic .getClassName (tagClass )));
546
+ createTripleSPO (result , DBP .fullPrefixed (tag .name ), SNVOC .id , createLiteral (Long .toString (tag .id )));
547
+ toWriter (result .toString ());
546
548
}
547
549
548
550
@ Override
@@ -560,7 +562,7 @@ public void serialize(Location location) {
560
562
writeDBPData (DBP .fullPrefixed (name ), RDF .type , DBPOWL .Place );
561
563
writeDBPData (DBP .fullPrefixed (name ), RDF .type , type );
562
564
writeDBPData (DBP .fullPrefixed (name ), FOAF .Name , createLiteral (name ));
563
- writeDBPData ( DBP .fullPrefixed (name ), SNVOC .id , createLiteral (Long .toString (location .getId ())));
565
+ createTripleSPO ( result , DBP .fullPrefixed (name ), SNVOC .id , createLiteral (Long .toString (location .getId ())));
564
566
if (location .getType () != Location .CONTINENT ) {
565
567
String countryName = locationDic .getLocationName (locationDic .belongsTo (location .getId ()));
566
568
createTripleSPO (result , DBP .fullPrefixed (name ), SNVOC .isPartOf , DBP .fullPrefixed (countryName ));
@@ -575,10 +577,12 @@ public void serialize(TagClass tagClass) {
575
577
if (tagClass .name .equals ("Thing" )) {
576
578
writeDBPData ("<http://www.w3.org/2002/07/owl#Thing>" , RDFS .label , createLiteral (tagDic .getClassLabel (tagClass .id )));
577
579
createTripleSPO (result , "<http://www.w3.org/2002/07/owl#Thing>" , RDF .type , SNVOC .TagClass );
580
+ createTripleSPO (result , "<http://www.w3.org/2002/07/owl#Thing>" , SNVOC .id , Long .toString (tagClass .id ));
578
581
toWriter (result .toString ());
579
582
} else {
580
583
writeDBPData (DBPOWL .prefixed (tagDic .getClassName (tagClass .id )), RDFS .label , createLiteral (tagDic .getClassLabel (tagClass .id )));
581
584
createTripleSPO (result , DBP .fullPrefixed (tagDic .getClassName (tagClass .id )), RDF .type , SNVOC .TagClass );
585
+ createTripleSPO (result , DBP .fullPrefixed (tagDic .getClassName (tagClass .id )), SNVOC .id , Long .toString (tagClass .id ));
582
586
toWriter (result .toString ());
583
587
}
584
588
Integer parent = tagDic .getClassParent (tagClass .id );
@@ -638,7 +642,7 @@ private String getStaticNamespaces() {
638
642
createPrefixLine (result , FOAF .PREFIX , FOAF .NAMESPACE );
639
643
createPrefixLine (result , DBP .PREFIX , DBP .NAMESPACE );
640
644
createPrefixLine (result , DBPOWL .PREFIX , DBPOWL .NAMESPACE );
641
- createPrefixLine (result , SNVOC .PREFIX , SNVOC .NAMESPACE );
645
+ // createPrefixLine(result, SNVOC.PREFIX, SNVOC.NAMESPACE);
642
646
return result .toString ();
643
647
}
644
648
0 commit comments