CI-702-CSemantic Web and Service Oriented Architecture
Semantic Web and Service Oriented Architecture (CI-702-C) Important Questions
By the Paperwala team · · Exam on Fri 18 Dec
These are the 10 Semantic Web and Service Oriented Architecture (CI-702-C) topics we chose from the RGPV syllabus for RGPV B.Tech CSIT semester 7. No past paper of this subject is on this site yet, so we could not count repeats.
Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these
10 Semantic Web and Service Oriented Architecture topics from the syllabus
Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.
Semantic Web and Service Oriented Architecture important questions with answers
Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.
Q1. Semantic Web: vision, need and layer cake
Short answer. The Semantic Web is an extension of the current web in which data carries machine-readable meaning, so programs can find, join and reason over it. Its standards are drawn as a layer cake: URI and XML at the bottom, then RDF, RDF Schema, OWL, rules, proof and trust.
From the syllabus · Unit 1
From the papers
“Unit 1 of the syllabus outline: Semantic web basics, semantic data, search for the semantic web.” (Syllabus)
Write these points
Need for the Semantic Web
Today's pages are written for people. A program sees text, not meaning.
Search matches words, so 'Java' the island and 'Java' the language mix.
Data from different sites cannot be joined automatically.
Tim Berners-Lee proposed the idea in 2001 so agents could act on web data.
Traditional web compared with the Semantic Web
Traditional web links documents. Semantic Web links data items.
HTML describes how a page looks. RDF and OWL describe what data means.
Search in the traditional web is by keyword. Semantic queries use SPARQL.
Meaning lets machines infer new facts.
One fact written for people and for machines.
For people: 'Asha studies at RGPV, which is in Bhopal.'
For machines: (ex:Asha ex:studies ex:RGPV) and (ex:RGPV ex:locatedIn ex:Bhopal).
A program can now answer 'which students study in Bhopal?' without reading English.
Real-life example
When you search 'trains from Bhopal to Delhi tomorrow', a plain web search returns pages that contain these words. A semantic system would know Bhopal is a station, tomorrow is a date and 'from' is the source. It could then join timetable data from several sites into one answer.
Difference between traditional web and Semantic Web
Point
Traditional web
Semantic Web
Same or opposite
Links
Documents
Data and concepts
Opposite
Uses URIs and HTTP
Yes
Yes
Same
Meant for
People
People and machines
Opposite
Main languages
HTML
RDF, OWL, SPARQL
Opposite
Exam tip. Define the Semantic Web and draw the layer cake. Give four reasons it is needed. A table of traditional against semantic web finishes the answer.
Short answer.Search for the Semantic Web means finding data by its meaning, not by matching words. The search engine maps the query to concepts with URIs, then finds resources annotated with those concepts and related ones.
From the syllabus · Unit 1
From the papers
“Unit 1 of the syllabus outline: Semantic web basics, semantic data, search for the semantic web.” (Syllabus)
Write these points
Problems of keyword search
One word has many meanings: 'Java' is an island, a coffee and a language.
Pages that use a different word for the same idea are missed.
The engine cannot join facts from two pages into one answer.
Results are a list of pages, not the answer itself.
How semantic search works
Find the concept behind the query words, such as ex:JavaLanguage.
Look up resources tagged with that concept (ex:about, schema.org markup).
Expand with subclasses, sameAs links and related concepts.
Rank the results and show facts, not only links.
Precision and recall for 'Java programming language'.
Six pages. P2, P4 and P5 are about the language (P5 is a JDK guide that never says 'Java').
Entity search: find one thing and its facts (a knowledge panel).
Structured query: SPARQL over RDF data.
Ontology search: find a vocabulary to reuse, such as on LOV.
Real-life example
When you search the name of a cricket player, the result page shows a side box with age, team and records. That box comes from a knowledge graph of entities, not from matching words. The search engine knew the query named a person.
Difference between keyword search and semantic search
Point
Keyword search
Semantic search
Same or opposite
Matches
Words in text
Concepts with URIs
Opposite
Goal is to help the user find
Yes
Yes
Same
Handles synonyms
Poorly
Yes, through the ontology
Opposite
Result
List of pages
Facts and resources
Opposite
Needs annotated data
No
Yes
Opposite
Exam tip. Start with the 'Java' example of keyword search. Draw the semantic search steps. Show precision and recall for both kinds.
Short answer.Semantic modelling is writing down what things are and how they relate in a form that both people and programs can read. A semantic model uses classes, properties and individuals with URIs, so the meaning is shared and can be checked.
From the syllabus · Unit 2
From the papers
“Unit 2 of the syllabus outline: Semantic modelling, explanation and prediction, variation across classes and layers.” (Syllabus)
Write these points
Why we build a model
Human communication: people agree on what a word like 'student' means.
Explanation: the model can say why a fact holds.
Prediction: the model gives facts that were never typed in.
Mediating variability: it joins data that uses different names.
Parts of a semantic model
Classes: groups of things, such as Student.
Properties: links between things, such as enrolledIn.
Individuals: real members, such as ex:Asha.
Axioms: rules such as 'every Student is a Person'.
A table written as a model.
Table: 4 students with roll, name and branch.
The roll becomes the subject URI. Name and branch give 4 x 2 = 8 triples.
One rdf:type ex:Student triple per row adds 4. The model has 12 triples.
Expressivity
A plain list of triples has no rules.
RDFS adds classes, subclasses, domain and range.
OWL adds disjointness, cardinality and property traits.
Choose the least expressive language that answers the questions.
Real-life example
A railway reservation form, a timetable and a station map all talk about 'station'. If each team means something a little different, data does not join. A shared model of Station, Train and Route fixes the meaning once for all teams.
Building a semantic model
Difference between a database schema and a semantic model
Point
Database schema
Semantic model
Same or opposite
Describes the data
Yes
Yes
Same
Meaning shared across systems
No, local
Yes, through URIs
Opposite
New facts by inference
No
Yes
Opposite
Adding a new property
Change the table
Add triples
Opposite
Exam tip. Define semantic modelling. Give its four purposes. Convert a small table into triples and count them.
Q4. Explanation and prediction in a semantic model
Short answer. A semantic model can explain a fact by showing the rules and stated facts that lead to it. It can predict facts that were never stated by applying its rules to new data.
From the syllabus · Unit 2
From the papers
“Unit 2 of the syllabus outline: Semantic modelling, explanation and prediction, variation across classes and layers.” (Syllabus)
Write these points
Explanation
The reasoner keeps the chain of steps behind each inferred fact.
A user can ask 'why is this true?' and see that chain.
Explanation builds trust in the result.
It also helps find a wrong rule or a wrong fact.
Prediction
State a rule once on a class.
Add a new member of the class.
The model gives the new member every fact of the rule.
No one types those facts again.
Marks of core subjects.
Rule on the class CoreSubject: end-semester exam 70 marks, internal 30 marks.
Predicted: 3 facts per subject (70, 30 and total 100), so 5 x 3 = 15 facts.
Why does CSIT701 have 100 marks? Because it is a CoreSubject and the rule says 70 + 30.
Limits
A prediction is only as good as the rule.
Open world: a missing fact is unknown, not false.
Real-life example
A doctor's app may tag a patient as diabetic from blood sugar readings. When asked why, it shows the two readings and the rule used. The doctor can then accept or reject the tag.
Prediction and explanation
Difference between explanation and prediction
Point
Explanation
Prediction
Same or opposite
Direction
From a fact back to its causes
From rules forward to new facts
Opposite
Uses the same rules
Yes
Yes
Same
Answers
Why is this true?
What else is true?
Opposite
Needs a reasoner
Yes
Yes
Same
Exam tip. Define both terms with one example. Show the rule, the stated facts and the predicted facts. Write the 'why' chain for one fact.
Short answer.RDF (Resource Description Framework) describes data as triples of subject, predicate and object, where subjects and predicates are URIs and objects are URIs or literal values. A set of triples forms a directed graph.
From the syllabus · Unit 3
From the papers
“Unit 3 of the syllabus outline: RDF, RDF Schema, RDF semantics and reasoning, distributed data.” (Syllabus)
Write these points
Parts of a triple
Subject: the thing described, such as ex:Asha.
Predicate: the property, such as ex:studies.
Object: the value, a resource (ex:RGPV) or a literal ("78").
Blank nodes stand for things with no name of their own.
Three facts as triples.
(ex:Asha, ex:studies, ex:RGPV)
(ex:Asha, ex:marks, "78")
(ex:RGPV, ex:locatedIn, ex:Bhopal)
3 triples, 4 nodes in the graph.
Ways to write RDF
RDF/XML: the original XML syntax.
Turtle: short form, such as ex:Asha ex:studies ex:RGPV .
N-Triples: one full triple per line.
JSON-LD: RDF inside JSON, used by websites for search engines.
Real-life example
A railway timetable can be written as triples: (train 12155, starts at, Bhopal), (train 12155, ends at, Delhi), (train 12155, departs, 20:40). Another site adds (Bhopal, state, Madhya Pradesh). Because both use the same URI for Bhopal, a program joins them at once.
Difference between RDF and XML
Point
RDF
XML
Same or opposite
Data model
Graph of triples
Tree of elements
Opposite
Machine readable
Yes
Yes
Same
Meaning of tags fixed by
URIs and vocabularies
Each application
Opposite
Merging two data sets
Easy, join on URIs
Hard
Opposite
Exam tip. Define a triple with its three parts. Write three triples and draw the graph. Name two serialisations such as Turtle and RDF/XML.
Q6. RDF Schema: classes, properties, domain and range
Short answer.RDF Schema (RDFS) is a small vocabulary for describing RDF data: it defines classes, properties, their hierarchies and the domain and range of properties. A reasoner uses these to infer new triples.
From the syllabus · Unit 3
From the papers
“Unit 3 of the syllabus outline: RDF, RDF Schema, RDF semantics and reasoning, distributed data.” (Syllabus)
Write these points
Main terms
rdfs:Class and rdf:type: declare a class and its members.
rdfs:subClassOf: Student is a subclass of Person.
rdfs:subPropertyOf: hasMother is a subproperty of hasParent.
rdfs:domain: the subject's class. rdfs:range: the object's class.
rdfs:label and rdfs:comment: human readable names.
When a library tags a book as 'Physics', the catalogue also shows it under 'Science' because Physics sits under Science. RDFS does this for data. Tag Asha as a Student and every query for Persons also finds her.
RDFS inference
Difference between RDFS and OWL
Point
RDFS
OWL
Same or opposite
Expressive power
Basic
Rich
Opposite
Defines classes and subclasses
Yes
Yes
Same
Disjoint classes and cardinality
No
Yes
Opposite
Built on RDF
Yes
Yes
Same
Exam tip. List the RDFS terms with one line each. Show two inferences: subClassOf and domain or range. Say what RDFS cannot do.
Short answer.OWL (Web Ontology Language) describes classes, properties and individuals with rich logic, such as disjoint classes, cardinality and transitive properties. OWL 1 had three sublanguages: OWL Lite, OWL DL and OWL Full, in order of growing power.
From the syllabus · Unit 4
From the papers
“Unit 4 of the syllabus outline: OWL syntax, species, formal semantics, description logics, reasoning, ontology matching.” (Syllabus)
Write these points
Sublanguage
Power
Reasoning
Use
OWL Lite
Class hierarchy, simple limits
Decidable, fast
Simple taxonomies
OWL DL
All constructs with limits
Decidable
Most ontologies
OWL Full
All constructs, no limits
Not decidable
Maximum freedom
Main OWL constructs
owl:Class, rdfs:subClassOf, owl:disjointWith.
owl:ObjectProperty (links individuals) and owl:DatatypeProperty (links to values).
Stated: A ancestorOf B, B ancestorOf C, C ancestorOf D (3 triples).
ancestorOf is declared transitive.
A reasoner adds A ancestorOf C, A ancestorOf D, B ancestorOf D. Total 6 triples.
Remember. OWL 2 replaced the three sublanguages with profiles (EL, QL, RL). Check which version your syllabus names.
Real-life example
A family tree app that knows 'ancestor of' is transitive can tell you your great-grandfather's place in the tree even though you only entered parents. OWL lets the app state that rule once. Every user's tree then gains the inferred links.
OWL property traits
Difference between OWL DL and OWL Full
Point
OWL DL
OWL Full
Same or opposite
Reasoning always ends
Yes
No
Opposite
Uses OWL vocabulary
Yes
Yes
Same
A class can also be an individual
No
Yes
Opposite
Tool support
Good
Weak
Opposite
Exam tip. Make a table of the three sublanguages. List the main constructs. Show one inference such as a transitive property.
Short answer.Description logic (DL) is the logic behind OWL DL: a TBox holds class definitions while a reasoner checks consistency and infers classes. Reasoning lets a Semantic Web system derive facts that were never written down.
From the syllabus · Unit 4
From the papers
“Unit 4 of the syllabus outline: OWL syntax, species, formal semantics, description logics, reasoning, ontology matching.” (Syllabus)
Write these points
Parts of a DL knowledge base
TBox: terms and axioms, such as Student is a subclass of Person.
ABox: facts about individuals, such as Asha is a Student.
Concepts are classes, roles are properties.
Reasoning tasks
Consistency: is there any contradiction?
Subsumption: is one class always inside another?
Classification: build the full class hierarchy.
Instance checking: which classes does an individual belong to?
Subsumption and a clash.
TBox: TopStudent = Student and (hasMarks some HighMarks). Student is a subclass of Person.
Result: TopStudent is subsumed by Person, even though no one wrote it.
If Student and Teacher are disjoint and Ravi is declared both, the reasoner reports the ontology as inconsistent.
Reasoners: HermiT, Pellet, FaCT++.
Open world assumption: a missing fact is unknown, not false.
Real-life example
A school rule says every class monitor is a student. If the principal's register lists Meena as a monitor, the office knows she is a student without a second entry. If someone also lists her as a teacher, the clash shows up at once. A reasoner does this checking for ontologies.
What a reasoner does
Difference between TBox and ABox
Point
TBox
ABox
Same or opposite
Holds
Class definitions
Facts about individuals
Opposite
Part of the knowledge base
Yes
Yes
Same
Example
Student subClassOf Person
Asha a Student
Opposite
Changes often
Rarely
Often
Opposite
Exam tip. Define TBox and ABox. List the four reasoning tasks. Show one inferred subclass and one inconsistency.
Short answer.SPARQL is the W3C query language for RDF data, which matches triple patterns with variables against a graph. A basic query has a PREFIX, a SELECT list of variables and a WHERE block of patterns, with optional FILTER and ORDER BY.
From the syllabus · Unit 5
From the papers
“Unit 5 of the syllabus outline: Semantic web application architecture, RDF stores and query engines, SPARQL, ontology engineering.” (Syllabus)
Write these points
Query to get students with marks above 60
PREFIX ex: <http://example.org/>
SELECT ?name ?marks
WHERE {
?s ex:name ?name .
?s ex:marks ?marks .
FILTER (?marks > 60)
}
ORDER BY DESC(?marks)
Remember. Not run on a SPARQL engine. The result below was computed in calc.py from the same data.
Data and result.
Data: Asha 78, Ravi 55, Meena 91, Arjun 62.
Rows kept by the filter: Meena 91, Asha 78, Arjun 62.
Ravi is dropped because 55 is not above 60.
Query forms
SELECT: returns a table of variable values.
CONSTRUCT: builds a new RDF graph.
ASK: returns true or false.
DESCRIBE: returns data about a resource.
OPTIONAL keeps rows where a pattern is missing.
UNION joins two sets of patterns.
Real-life example
A college portal stores data about students as RDF. The exam cell asks 'list students above 60 marks, highest first'. In SQL this needs a fixed table. In SPARQL the same question works even after a new property, such as hostel, is added to some students.
How a SPARQL query runs
Difference between SPARQL and SQL
Point
SPARQL
SQL
Same or opposite
Works on
RDF graphs
Relational tables
Opposite
Has SELECT, WHERE and FILTER
Yes
Yes
Same
Fixed schema needed
No
Yes
Opposite
Joins written as
Shared variables
JOIN clauses
Opposite
Exam tip. Write a full SELECT query with PREFIX, WHERE and FILTER. Show the data and the result rows. List the four query forms.
Q10. Ontology engineering: components and steps to build
Short answer. An ontology is a formal, shared description of the concepts of a domain and the relations between them. Its components are classes, properties, individuals, axioms and restrictions, built in steps from scope to testing.
From the syllabus · Unit 5
From the papers
“Unit 5 of the syllabus outline: Semantic web application architecture, RDF stores and query engines, SPARQL, ontology engineering.” (Syllabus)
Write these points
Components
Classes: Person, Student, Teacher, Course.
Properties: enrolledIn, teaches, hasName.
Individuals: Asha, the course CS-701.
Axioms: Student is a subclass of Person, Student and Teacher are disjoint.
Steps to build an ontology (Noy and McGuinness method)
Fix the domain and scope with sample questions.
Reuse existing ontologies where possible.
List the important terms.
Define classes and the class hierarchy.
Define properties and their facets (type, cardinality).
A hospital chain uses one shared list of diseases, symptoms and drugs so that all its branches mean the same thing by 'fever'. That shared list with its relations is an ontology. Tools built on it, such as an alert for a wrong drug, work in every branch.
Difference between ontology and database schema
Point
Ontology
Database schema
Same or opposite
Aim
Shared meaning
Storage layout
Opposite
Defines types of data
Yes
Yes
Same
Supports inference
Yes
No
Opposite
Open world (missing means unknown)
Yes
No, closed world
Opposite
Exam tip. Define ontology. List five components with examples. Write the build steps in order and draw a small class diagram.
Semantic Web and Service Oriented Architecture (CI-702-C) FAQs
What are the most important topics in Semantic Web and Service Oriented Architecture?
No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Semantic Web: vision, need and layer cake; Search for the Semantic Web; Semantic modelling and its purposes; Explanation and prediction in a semantic model; RDF triples and graphs.
How were these Semantic Web and Service Oriented Architecture important questions chosen?
Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Semantic Web and Service Oriented Architecture important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Semantic Web and Service Oriented Architecture is free to download from this page.
The 10 topics of Semantic Web and Service Oriented Architecture (CI-702-C) for RGPV B.Tech CSIT semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.