SE & SDA Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Prolog Query API

  • QueryDescription

Each query can have a description to be shown on the java part.

   query_description(+queryName,+queryType, +Description).
   e.g.  query_description(nopSmell,smell,'empty statement').
  • Smell
  smell(+smellName,-ListOfStatementIDs)
  • Metric
   metric(+metricName, -ID,-ComputedMetric). 
   metric_attributes(+metricName, +Range, +Threshold)
  • Dependency (This fits neither as a smell nor metric)
  dependency_package(DependentId,DependeeId, SccNumber,DependencyDegree).
  dependency_class(DependentId,DependeeId,DependencyDegree).
  dependency_term(DependentId,DependeeId, DependentTerms).
  • TermMetric
  termmetric(+metricName,?Scope,-ID, - [ [Term,ComputedMetric,IsIntroduced] ]).
  • TermQuery
  Each differ in syntax, all start with termquery(+queryName,..).
  • ArchitectureQueries
  • Inheritance/Implementation
  inheritance(ClassId,SuperClassId).
  implements(ClassId,SuperClassId).
research/cultivate/prolog_query_api.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2018