Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
2 answers

Insert a Sparql Query Into Ontotext GraphDB

I am using Ontotext GraphDB to store semantic data. GraphDB allows to store/save sparql queries which are exposed as web services. However I want to store/save sparql queries through HTTP POST request. Below is my query and name of the query will be…
Nikunj Vekariya
  • 833
  • 5
  • 19
0
votes
2 answers

Can different program implementations have the same program semantics?

So for any given language, if we implement the same program(i.e same output for any given input) twice, using different syntax (i.e. using i++ instead of i+1) will the two programs have the same semantics? Why? Does the same apply in case where we…
Rakim
  • 1,087
  • 9
  • 21
  • 40
0
votes
1 answer

visualise instance of concepts in protègè 4.3

Good Day, I want to visualise the concepts and their instances in protege 4.3. unfortunately I don't find the OntoViz plugin in this version. Can you help in this context are there other plugin for this task for example Thanks a lot in advance
0
votes
0 answers

Is the class Object in Java a metaclass?

In Java, the class Object acts as the root for all the other classes that are created. Every new class inherits from Object, so can be Object considered the Metaclass of Java? I suppose there is just one Metaclass in Java, not like Smalltalk or…
David
  • 165
  • 1
  • 8
0
votes
2 answers

URL semantics analysis in R

I have a dataset containing various urls. https://www.thetrainline.com/buytickets/combinedmatrix.aspx?Command=TimeTable https://wwf-fb.zyngawithfriends.com/wwf-fb.a84485c126e67ea2787c.html http://www.thetrainline.com/destinations/trains-to-london I…
Bitanshu Das
  • 627
  • 2
  • 8
  • 21
0
votes
1 answer

Which is the correct container for a search input? Span or Div?

According MDN span's permitted content is Phrasing content and div is Flow content. I was looking at the html generated source of Facebook and I noticed they wrapped the "find friends" main search input in a span and marked it display:block. To me…
Johnston
  • 20,196
  • 18
  • 72
  • 121
0
votes
1 answer

Does the set LV only contains untyped literals?

I'm reading the book Foundations of Semantic Web Technologies. One conception really confuses me. In the definition of a simple interpretation I, it says that IL maps the typed literals from V into the set IR of resources and LV, a particular subset…
0
votes
1 answer

What could be a reason for `_localctx` being null in an antlr4 semantic predicate?

I'm using list labels to gather tokens and semantic predicates to validate sequences in my parser grammar. E.g. line : (text+=WORD | text+=NUMBER)+ ((BLANK | SKIP)+ (text+=WORD | text+=NUMBER)+)+ {Parser.validateContext(_localctx)}? …
FK82
  • 4,907
  • 4
  • 29
  • 42
0
votes
0 answers

Find semantics words between different phrases

I try to find a way to define in PHP a semantic by comparing some phrases and find occurence for example i have something like Array ( [0] => Cats love Mouse Car Dog Fish [1] => Pictures Cats Some Text Mouse [2] => Game of thrones 2015…
user492642
  • 169
  • 1
  • 3
  • 12
0
votes
4 answers

Can I use more than one "main" html tag in the same page?

For example, if I want to put h1 in a left column and content in a right column:

Document Title

Text content

Is it correct?…
aitor
  • 2,281
  • 3
  • 22
  • 44
0
votes
2 answers

Semantics of class vs ID in reusable templates

I'm working on an online store. I've learned a little PHP and so I'm using a single template file with some conditional includes and such rather than building separate product pages (no database yet though, still learning!). So I have sections that…
Lee Saxon
  • 457
  • 3
  • 14
0
votes
1 answer

Style question: do you set your nav controller for all the child view controllers, even if they're not the top level view that is on the nav stack?

Let's say you have a tab view controller on the navigation controller view stack. (For the sake of argument.) Your tab controller has an array of view controllers for each of its tab views. Your tab controller's navigationController is clearly set…
zekel
  • 9,227
  • 10
  • 65
  • 96
0
votes
0 answers

Convert Microsoft product's version (like "Outlook 2003") to build number?

In a related security.stackexchange.com question, I asked for ways to find security advisories for specific software. I'd like to automate this process, but I found a mismatch between my database of Microsoft versions that includes build numbers…
d33tah
  • 10,999
  • 13
  • 68
  • 158
0
votes
0 answers

Semantic head finder with priority given to noun/noun phrases

Does anyone know of an implementation of a semantic head finder which gives priority to N*/NP's instead of V*/VP's? I've been able to use the Stanford Tregex package to extract heads of NPs with the pattern __ >># NP but doing the same for ROOT will…
Justin D.
  • 4,946
  • 5
  • 36
  • 69
0
votes
2 answers

What is the proper way to say `#` to other developers?

I'm trying to improve the clarity of my communication with other developers. There has been times I've found when I'm describing to other developers to use the # symbol in code and found that I hesitate then say its name three different ways. I say…
James Oravec
  • 19,579
  • 27
  • 94
  • 160