Learn

Friday, 22 December 2017

What is Semantic web in Java Based Artificial Intelligence Algorithm



What is the Semantic web in Java Based Artificial Intelligence Algorithm:

The SemanticWeb is intended to provide a massive linked set of data for use by software systems just as the World Wide Web provides a massive collection of linked web pages for human reading and browsing. The Semantic Web is like the web in that anyone can generate any content that they want. This freedom to publish anything works for the web because we use our ability to understand the natural language to interpret what we read – and often to dismiss material that based upon our own knowledge we consider to be incorrect.

The core concept for the Semantic Web is data integration and use from different sources. As we will soon see, the tools for implementing the Semantic Web are designed for encoding data and sharing data from many different sources.

There are several very good Semantic Web toolkits for the Java language and platform. I will use Sesame because it is what I often use in my own work and I believe that it is a good starting technology for your first experiments with Semantic Web technologies. This chapter provides an incomplete coverage of Semantic Web technologies and is intended merely as a gentle introduction to a few useful techniques and how to implement those techniques in Java.

The figure below shows a layered set of data models that are used to implement Semantic Web applications. To design and implement these applications we need to think in terms of physical models (storage and access of RDF, RDFS, and perhaps OWL data), logical models (how we use RDF and RDFS to define relationships between data represented as unique URIs and string literals and how we logically combine data from different sources) and conceptual modeling (higher level knowledge representation using OWL).


Figure: Layers of data models used in implementing SemanticWeb applications


Sunday, 3 December 2017

How Does OldBlockState Is Used In JAVA Artificial Intelligence Algorithm Progrmming


Use of OldBlockState:


The next POJO class OldBlockState is used to represent previous states of blocks as they are being moved as the rules in this example “fire.” We will later see rules that will not put a block into a state that it previously existed in:

public static class OldBlockState extends Block {

public OldBlockState(String name,
String onTopOf,

String supporting) {

super(name, onTopOf, supporting);

}

public String toString() {

return "[OldBlockState_" + this.hashCode() +" " + name + " on top of: " + onTopOf +" supporting: " + supporting+"]";


}


}


The next POJO class Goal is used to represent a goal state for the blocks that we are trying to reach:


public static class Goal {
private String supportingBlock;
private String supportedBlock;
public Goal(String supporting, String supported) {
this.supportingBlock = supporting;
this.supportedBlock = supported;
}
public String toString() {
return "[Goal_" + this.hashCode() +
" Goal: supporting block: " +
supportingBlock +
" and supported block: " +
supportedBlock +"]";
}
public void setSupportingBlock(
String supportingBlock) {
this.supportingBlock = supportingBlock;
}
public String getSupportingBlock() {
return supportingBlock;
}
public void setSupportedBlock(
String supportedBlock) {
this.supportedBlock = supportedBlock;
}
public String getSupportedBlock() {
return supportedBlock;
}
}