src/main/java/eu/periclesproject/pet2lrm/MapperLRM.java
/**
	 * Creates an ontology resource for an instance of the PET Part Class. There
	 * are several Parts for each Profile. A Part represents a file which is/was
	 * added to PET.
	 * 
	 * @param part
	 * @return the created resource
	 */
Creates an ontology resource for an instance of the PET Part Class. There
are several Parts for each Profile. A Part represents a file which is/was
added to PET.

@param part
@return the created resource
Creates an ontology resource for an instance of the PET Part Class . There are several Parts for each Profile . A Part represents a file which is / was added to PET . @param part @return the created resource
private Individual createPartResource(Part part) {
		Individual file = ontology.abstractPart
				.createIndividual(ontology.PET2LRM_NS + part.profileUUID + "-"
						+ EnvironmentModuleMapper.norm(part.fileName));
		file.addProperty(LRM_static_schema.realizes, ontology.abstractPart);
		file.addProperty(ontology.hasFileName, part.fileName);
		if (part.getFile()!=null)
			file.addProperty(ontology.hasFilePath, part.getFile().toAbsolutePath().toString());
		fileModuleMapper.map(file, part);
		return file;
	}
private Individual createPartResource ( Part part ) { Individual file = ontology . abstractPart . createIndividual ( ontology . PET2LRM_NS + part . profileUUID + "-" + EnvironmentModuleMapper . norm ( part . fileName ) ) ; file . addProperty ( LRM_static_schema . realizes , ontology . abstractPart ) ; file . addProperty ( ontology . hasFileName , part . fileName ) ; if ( part . getFile ( ) != null ) file . addProperty ( ontology . hasFilePath , part . getFile ( ) . toAbsolutePath ( ) . toString ( ) ) ; fileModuleMapper . map ( file , part ) ; return file ; }
Creates an ontology resource for an instance of the PET Part Class.
Creates an ontology resource for an instance of the PET Part Class .