Commits

Sam Adams committed 5b0e4b4

Imitial implementation of delete

Comments (0)

Files changed (2)

crystallography-common/src/main/java/net/chempound/crystal/rdf/CrystalStructure.java

 import com.hp.hpl.jena.rdf.model.Resource;
 
 import java.net.URI;
+import java.util.List;
 
 /**
  * @author Sam Adams
     String getCifPath();
 
 
+    List<Moiety> getMoieties();
+
 }

crystallography-common/src/main/java/net/chempound/crystal/rdf/impl/CrystalStructureImpl.java

         return getPropertyStringValue(CifDict.publContactAuthorEmail);
     }
 
+    @Override
     public UnitCell getUnitCell() {
         if (unitCell == null) {
             Resource r = getPropertyResourceValue(Cryst.hasUnitCell);
         return unitCell;
     }
 
-
+    @Override
     public List<Moiety> getMoieties() {
         final List<Moiety> list = new ArrayList<Moiety>();
         for (final StmtIterator it = listProperties(Cryst.hasMoiety); it.hasNext();) {
 
     private Resource getIdentifier(final Property type) {
         return getPropertyResourceValue(type);
-//        for (StmtIterator it = resource.listProperties(type); it.hasNext();) {
-//            Statement s = it.next();
-//            Resource r = s.getPropertyResourceValue();
-//            if (r.hasProperty(RDF.type, type)) {
-//                return r;
-//            }
-//        }
-//        return null;
     }
 
 
     }
 
     @Override
+    @SuppressWarnings("deprecation")
     public String getSpaceGroupCrystalSystem() {
         String s = getPropertyStringValue(CifDict.spaceGroupCrystalSystem);
         if (s == null) {
     }
 
     @Override
+    @SuppressWarnings("deprecation")
     public String getSpaceGroupNameHall() {
         String s = getPropertyStringValue(CifDict.spaceGroupNameHall);
         if (s == null) {
     }
 
     @Override
+    @SuppressWarnings("deprecation")
     public String getSpaceGroupNameHMAlt() {
         String s = getPropertyStringValue(CifDict.spaceGroupNameHMAlt);
         if (s == null) {