src/main/java/eu/periclesproject/pet2lrm/DaemonModuleMapper.java
/**
	 * Add general extraction module result information to the ontology. This is
	 * also done for modules which are unknown.
	 * 
	 * @param resource
	 * @param result
	 * @return
	 */
Add general extraction module result information to the ontology. This is
also done for modules which are unknown.

@param resource
@param result
@return
Add general extraction module result information to the ontology . This is also done for modules which are unknown . @param resource @param result @return
private Resource mapGeneralResultInformation(Resource resource,
			Event result) {
		resource.addProperty(ontology.isExtractedBy, result.reporterName);
		resource.addProperty(ontology.hasFileName, result.fileName);
		resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "type"),result.type);
		resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "timestamp"),""+result.timestamp);
		resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "dateTime"), ResourceFactory.createTypedLiteral(fmt.format(new Date(result.timestamp)),XSDDatatype.XSDdateTime));
		if (result.data instanceof LSOFout) {
			LSOFout d = (LSOFout) result.data;
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "command"),""+d.command);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "device"),""+d.device);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "fullProcessName"),""+d.fullProcessName);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "fullProcessPath"),""+d.fullProcesspath);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "processArguments"),""+d.processArguments);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "size"),""+d.size);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "pid"),""+d.pid);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "fd"),""+d.FD);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "node"),""+d.node);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "type"),""+d.type);
			resource.addProperty(ontology.model.createOntProperty(EnvironmentModel.PET2LRM_NS + "user"),""+d.user);
		}
		return resource;
	}
private Resource mapGeneralResultInformation ( Resource resource , Event result ) { resource . addProperty ( ontology . isExtractedBy , result . reporterName ) ; resource . addProperty ( ontology . hasFileName , result . fileName ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "type" ) , result . type ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "timestamp" ) , "" + result . timestamp ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "dateTime" ) , ResourceFactory . createTypedLiteral ( fmt . format ( new Date ( result . timestamp ) ) , XSDDatatype . XSDdateTime ) ) ; if ( result . data instanceof LSOFout ) { LSOFout d = ( LSOFout ) result . data ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "command" ) , "" + d . command ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "device" ) , "" + d . device ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "fullProcessName" ) , "" + d . fullProcessName ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "fullProcessPath" ) , "" + d . fullProcesspath ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "processArguments" ) , "" + d . processArguments ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "size" ) , "" + d . size ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "pid" ) , "" + d . pid ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "fd" ) , "" + d . FD ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "node" ) , "" + d . node ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "type" ) , "" + d . type ) ; resource . addProperty ( ontology . model . createOntProperty ( EnvironmentModel . PET2LRM_NS + "user" ) , "" + d . user ) ; } return resource ; }
Add general extraction module result information to the ontology.
Add general extraction module result information to the ontology .
// parsedEvent.timestamp; //		resource.addProperty(LRM_dynamic_schema.triggeredBy, //				moduleResource);