CI-702-C Semantic Web and Service Oriented Architecture

Semantic Web and Service Oriented Architecture (CI-702-C) Important Questions

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.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • All papers on this site: 0
  • 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

Diagram: Semantic Web: vision, need and layer cake

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

  1. Traditional web links documents. Semantic Web links data items.
  2. HTML describes how a page looks. RDF and OWL describe what data means.
  3. Search in the traditional web is by keyword. Semantic queries use SPARQL.
  4. 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

PointTraditional webSemantic WebSame or opposite
LinksDocumentsData and conceptsOpposite
Uses URIs and HTTPYesYesSame
Meant forPeoplePeople and machinesOpposite
Main languagesHTMLRDF, OWL, SPARQLOpposite

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.

Back to the topic list

Q2. Search for the Semantic Web

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

  1. Find the concept behind the query words, such as ex:JavaLanguage.
  2. Look up resources tagged with that concept (ex:about, schema.org markup).
  3. Expand with subclasses, sameAs links and related concepts.
  4. Rank the results and show facts, not only links.
Diagram: Search for the Semantic Web

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').

Keyword search on 'Java' returns P1, P2, P3, P4: precision 2/4 = 0.5, recall 2/3 = 0.667.

Semantic search on ex:JavaLanguage returns P2, P4, P5: precision 1.0, recall 1.0.

Kinds of semantic search

  • 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

PointKeyword searchSemantic searchSame or opposite
MatchesWords in textConcepts with URIsOpposite
Goal is to help the user findYesYesSame
Handles synonymsPoorlyYes, through the ontologyOpposite
ResultList of pagesFacts and resourcesOpposite
Needs annotated dataNoYesOpposite

Exam tip. Start with the 'Java' example of keyword search. Draw the semantic search steps. Show precision and recall for both kinds.

Back to the topic list

Q3. Semantic modelling and its purposes

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

  1. Classes: groups of things, such as Student.
  2. Properties: links between things, such as enrolledIn.
  3. Individuals: real members, such as ex:Asha.
  4. 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
Building a semantic model

Difference between a database schema and a semantic model

PointDatabase schemaSemantic modelSame or opposite
Describes the dataYesYesSame
Meaning shared across systemsNo, localYes, through URIsOpposite
New facts by inferenceNoYesOpposite
Adding a new propertyChange the tableAdd triplesOpposite

Exam tip. Define semantic modelling. Give its four purposes. Convert a small table into triples and count them.

Back to the topic list

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

  1. State a rule once on a class.
  2. Add a new member of the class.
  3. The model gives the new member every fact of the rule.
  4. No one types those facts again.

Marks of core subjects.

Rule on the class CoreSubject: end-semester exam 70 marks, internal 30 marks.

Stated: 5 subjects are CoreSubject. Facts typed in: 5 + 2 = 7.

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
Prediction and explanation

Difference between explanation and prediction

PointExplanationPredictionSame or opposite
DirectionFrom a fact back to its causesFrom rules forward to new factsOpposite
Uses the same rulesYesYesSame
AnswersWhy is this true?What else is true?Opposite
Needs a reasonerYesYesSame

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.

Back to the topic list

Q5. RDF triples and graphs

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.

Diagram: RDF triples and graphs

Ways to write RDF

  1. RDF/XML: the original XML syntax.
  2. Turtle: short form, such as ex:Asha ex:studies ex:RGPV .
  3. N-Triples: one full triple per line.
  4. 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

PointRDFXMLSame or opposite
Data modelGraph of triplesTree of elementsOpposite
Machine readableYesYesSame
Meaning of tags fixed byURIs and vocabulariesEach applicationOpposite
Merging two data setsEasy, join on URIsHardOpposite

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.

Back to the topic list

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.

Inference from subClassOf.

Schema: ex:Student rdfs:subClassOf ex:Person. ex:Person rdfs:subClassOf ex:Agent.

Data: ex:Asha rdf:type ex:Student.

Inferred: ex:Asha rdf:type ex:Person. Also ex:Asha rdf:type ex:Agent.

Inference from domain and range.

ex:enrolledIn rdfs:domain ex:Student. ex:enrolledIn rdfs:range ex:Course.

Data: ex:Ravi ex:enrolledIn ex:CS701.

Inferred: Ravi is a Student. CS701 is a Course.

Limits of RDFS

  1. No disjoint classes.
  2. No cardinality (exactly one roll number).
  3. No transitive or inverse properties.
  4. OWL adds these.

Real-life example

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
RDFS inference

Difference between RDFS and OWL

PointRDFSOWLSame or opposite
Expressive powerBasicRichOpposite
Defines classes and subclassesYesYesSame
Disjoint classes and cardinalityNoYesOpposite
Built on RDFYesYesSame

Exam tip. List the RDFS terms with one line each. Show two inferences: subClassOf and domain or range. Say what RDFS cannot do.

Back to the topic list

Q7. OWL species (sublanguages)

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

SublanguagePowerReasoningUse
OWL LiteClass hierarchy, simple limitsDecidable, fastSimple taxonomies
OWL DLAll constructs with limitsDecidableMost ontologies
OWL FullAll constructs, no limitsNot decidableMaximum freedom

Main OWL constructs

  • owl:Class, rdfs:subClassOf, owl:disjointWith.
  • owl:ObjectProperty (links individuals) and owl:DatatypeProperty (links to values).
  • Property traits: TransitiveProperty, SymmetricProperty, FunctionalProperty, inverseOf.
  • Restrictions: someValuesFrom, allValuesFrom, cardinality.

Inference from a transitive property.

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
OWL property traits

Difference between OWL DL and OWL Full

PointOWL DLOWL FullSame or opposite
Reasoning always endsYesNoOpposite
Uses OWL vocabularyYesYesSame
A class can also be an individualNoYesOpposite
Tool supportGoodWeakOpposite

Exam tip. Make a table of the three sublanguages. List the main constructs. Show one inference such as a transitive property.

Back to the topic list

Q8. Description logic and reasoning

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

  1. Consistency: is there any contradiction?
  2. Subsumption: is one class always inside another?
  3. Classification: build the full class hierarchy.
  4. 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
What a reasoner does

Difference between TBox and ABox

PointTBoxABoxSame or opposite
HoldsClass definitionsFacts about individualsOpposite
Part of the knowledge baseYesYesSame
ExampleStudent subClassOf PersonAsha a StudentOpposite
Changes oftenRarelyOftenOpposite

Exam tip. Define TBox and ABox. List the four reasoning tasks. Show one inferred subclass and one inconsistency.

Back to the topic list

Q9. SPARQL queries

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

  1. SELECT: returns a table of variable values.
  2. CONSTRUCT: builds a new RDF graph.
  3. ASK: returns true or false.
  4. 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
How a SPARQL query runs

Difference between SPARQL and SQL

PointSPARQLSQLSame or opposite
Works onRDF graphsRelational tablesOpposite
Has SELECT, WHERE and FILTERYesYesSame
Fixed schema neededNoYesOpposite
Joins written asShared variablesJOIN clausesOpposite

Exam tip. Write a full SELECT query with PREFIX, WHERE and FILTER. Show the data and the result rows. List the four query forms.

Back to the topic list

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

Diagram: Ontology engineering: components and steps to build

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)

  1. Fix the domain and scope with sample questions.
  2. Reuse existing ontologies where possible.
  3. List the important terms.
  4. Define classes and the class hierarchy.
  5. Define properties and their facets (type, cardinality).
  6. Create individuals, then test with a reasoner.

A small university ontology.

Classes: Person, Student, Teacher, Course (4).

Student subClassOf Person. Teacher subClassOf Person. Student disjointWith Teacher.

Properties: Student enrolledIn Course. Teacher teaches Course.

Real-life example

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

PointOntologyDatabase schemaSame or opposite
AimShared meaningStorage layoutOpposite
Defines types of dataYesYesSame
Supports inferenceYesNoOpposite
Open world (missing means unknown)YesNo, closed worldOpposite

Exam tip. Define ontology. List five components with examples. Write the build steps in order and draw a small class diagram.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

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.